From 968697ee1770919bedd47d212202570a3c558d3e Mon Sep 17 00:00:00 2001 From: shancheas Date: Tue, 27 May 2025 11:51:54 +0700 Subject: [PATCH 1/2] feat: add check period to public url --- .../infrastructure/season-period-read.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/season-related/season-period/infrastructure/season-period-read.controller.ts b/src/modules/season-related/season-period/infrastructure/season-period-read.controller.ts index 463a35f..ed962cd 100644 --- a/src/modules/season-related/season-period/infrastructure/season-period-read.controller.ts +++ b/src/modules/season-related/season-period/infrastructure/season-period-read.controller.ts @@ -26,6 +26,7 @@ export class SeasonPeriodReadController { return await this.orchestrator.index(params); } + @Public(true) @Get('current-period') async currentPeriod( @Query() params: FilterCurrentSeasonDto, -- 2.40.1 From 94e769795af0840c6b65a7ebed1aa43a39d7b254 Mon Sep 17 00:00:00 2001 From: shancheas Date: Tue, 27 May 2025 13:26:41 +0700 Subject: [PATCH 2/2] fix: add version to booking api --- .../controllers/booking-authentication.controller.ts | 2 +- .../booking-online/order/infrastructure/item.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/booking-online/authentication/infrastructure/controllers/booking-authentication.controller.ts b/src/modules/booking-online/authentication/infrastructure/controllers/booking-authentication.controller.ts index 6ae67c6..1d6b5f8 100644 --- a/src/modules/booking-online/authentication/infrastructure/controllers/booking-authentication.controller.ts +++ b/src/modules/booking-online/authentication/infrastructure/controllers/booking-authentication.controller.ts @@ -10,7 +10,7 @@ import { ApiTags } from '@nestjs/swagger'; @ApiTags('Booking Authentication') @Public() -@Controller('booking-authentication') +@Controller('v1/booking-authentication') export class BookingAuthenticationController { constructor( private readonly bookingAuthenticationService: VerificationService, diff --git a/src/modules/booking-online/order/infrastructure/item.controller.ts b/src/modules/booking-online/order/infrastructure/item.controller.ts index e6b8efe..7a70a07 100644 --- a/src/modules/booking-online/order/infrastructure/item.controller.ts +++ b/src/modules/booking-online/order/infrastructure/item.controller.ts @@ -9,7 +9,7 @@ import { IndexItemManager } from 'src/modules/item-related/item/domain/usecases/ import { FilterItemDto } from 'src/modules/item-related/item/infrastructure/dto/filter-item.dto'; @ApiTags('Booking Item') -@Controller('booking-item') +@Controller('v1/booking-item') @Public(true) export class ItemController { constructor( -- 2.40.1