get admins, get system roles,

This commit is contained in:
2025-12-28 10:26:24 +03:30
parent 4da1680b29
commit 9b409f3e07
5 changed files with 139 additions and 37 deletions
@@ -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);
}
}