delete
This commit is contained in:
@@ -122,4 +122,13 @@ export class RestaurantsController {
|
||||
return this.restaurantsService.upgradeSubscription(subscriptionId, upgradeSubscriptionDto);
|
||||
}
|
||||
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Hard delete a restaurant and all related data' })
|
||||
@ApiParam({ name: 'id', required: true, description: 'Restaurant ID' })
|
||||
@Delete('super-admin/restaurants/:id/hard-delete')
|
||||
hardDeleteRestaurant(@Param('id') id: string) {
|
||||
return this.restaurantsService.hardDeleteRestaurant(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user