import { GoogleCalendarOrchestrator } from './../domain/usecases/google-calendar.orchestrator'; import { Controller, Get, Query } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { Public } from 'src/core/guards'; import { FilterGoogleCalendarDto } from './dto/filter-google-calendar.dto'; @ApiTags(`google calendar - read`) @Controller('v1/google-calendar') @Public(true) export class GoogleCalendarController { constructor(private orchestrator: GoogleCalendarOrchestrator) {} @Get('/holiday') async calendar(@Query() params: FilterGoogleCalendarDto) { return await this.orchestrator.holiday(params); } }