update notif content

This commit is contained in:
2025-12-24 12:09:09 +03:30
parent 805329e869
commit 8195d8780b
4 changed files with 20 additions and 150 deletions
@@ -34,16 +34,6 @@ export class RestaurantsController {
}
/** Admin Endpoints */
@UseGuards(AdminAuthGuard)
@ApiBearerAuth()
@Permissions(Permission.UPDATE_RESTAURANT)
@Post('admin/restaurants')
@ApiOperation({ summary: 'Create a new restaurant' })
@ApiBody({ type: CreateRestaurantDto })
create(@Body() createRestaurantDto: CreateRestaurantDto) {
return this.restaurantsService.create(createRestaurantDto);
}
@UseGuards(AdminAuthGuard)
@ApiBearerAuth()
@@ -81,4 +71,14 @@ export class RestaurantsController {
findAll(@Query() dto: FindRestaurantsDto) {
return this.restaurantsService.findAll(dto);
}
@UseGuards(SuperAdminAuthGuard)
@ApiBearerAuth()
@ApiOperation({ summary: 'Create a new restaurant' })
@Post('super-admin/restaurants')
createRestaurant(@Body() createRestaurantDto: CreateRestaurantDto) {
return this.restaurantsService.create(createRestaurantDto);
}
}