diff --git a/backend/src/category/category.controller.ts b/backend/src/category/category.controller.ts index 6c31c945f60ce1e588e79074f75178cc28aa3c18..66e01e15e4fc21de7a288661253325c5ea27a223 100644 --- a/backend/src/category/category.controller.ts +++ b/backend/src/category/category.controller.ts @@ -22,7 +22,7 @@ export class CategoryController { return { message: 'Category created successfully' }; } - @Get(':lang') + @Get('') findAll(@Query('lang') lang: LANGUAGES) { return this.categoryService.findAll(lang); } diff --git a/backend/src/pointOfInterest/PointOfInterest.controller.ts b/backend/src/pointOfInterest/PointOfInterest.controller.ts index 62ac1bdda13ebe740aa8557c88a4a1ee338d47b2..fcb8fe54266d57b906ad04bf7e01e58aac981e44 100644 --- a/backend/src/pointOfInterest/PointOfInterest.controller.ts +++ b/backend/src/pointOfInterest/PointOfInterest.controller.ts @@ -54,7 +54,8 @@ export class PointOfInterestController { return file; } - @Get('point/:idPoint?lang') + @Get('point/:idPoint') + @ApiQuery({ name: 'lang', type: String }) async findOne(@Param('idPoint') idPoint: number, @Query('lang') lang: string) { return await this.pointService.findOne(idPoint, lang as LANGUAGES); }