category
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user