get restuarant by id as super admin
This commit is contained in:
@@ -90,6 +90,15 @@ export class RestaurantsController {
|
||||
return this.restaurantsService.findOneBySubscriptionId(subscriptionId);
|
||||
}
|
||||
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Get restaurant by ID' })
|
||||
@ApiParam({ name: 'id', required: true, description: 'Restaurant ID' })
|
||||
@Get('super-admin/restaurants/:id')
|
||||
findOneById(@Param('id') id: string) {
|
||||
return this.restaurantsService.findOne(id);
|
||||
}
|
||||
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Update a restaurant by ID' })
|
||||
|
||||
Reference in New Issue
Block a user