Commit a025ebc6 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Merge branch 'main' into 'main'

Corrigiendo typo en url

See merge request ltrpro/pueblosmagicosconia!48
parents 58e31751 5d1be0ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
  }
+2 −1
Original line number Diff line number Diff line
@@ -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);
  }