get admins, get system roles,
This commit is contained in:
@@ -89,5 +89,14 @@ export class RestaurantsController {
|
||||
return this.restaurantsService.findOneBySubscriptionId(subscriptionId);
|
||||
}
|
||||
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Update a restaurant by ID' })
|
||||
@ApiParam({ name: 'id', required: true, description: 'Restaurant ID' })
|
||||
@ApiBody({ type: UpdateRestaurantDto })
|
||||
@Patch('super-admin/restaurants/:id')
|
||||
updateRestaurant(@Param('id') id: string, @Body() updateRestaurantDto: UpdateRestaurantDto) {
|
||||
return this.restaurantsService.update(id, updateRestaurantDto);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user