This commit is contained in:
2025-11-25 11:26:33 +03:30
parent d737b3dc24
commit e21abda0ce
7 changed files with 67 additions and 69 deletions
@@ -64,8 +64,8 @@ export class FoodController {
@ApiParam({ name: 'id', required: true })
@ApiOkResponse({ description: 'The food', type: CreateFoodDto })
@ApiNotFoundResponse({ description: 'Food not found' })
findOne(@Param('id') id: string) {
return this.foodsService.findOne(id);
findById(@Param('id') id: string) {
return this.foodsService.findById(id);
}
@UseGuards(AdminAuthGuard)