From fcae4802604736276b167d33fe50c321e7b5c283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:41:59 -0600 Subject: [PATCH] corrigiendo typo en urls --- backend/src/category/category.controller.ts | 2 +- backend/src/pointOfInterest/PointOfInterest.controller.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/category/category.controller.ts b/backend/src/category/category.controller.ts index 6c31c945..66e01e15 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 62ac1bdd..fcb8fe54 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); } -- GitLab