payement
This commit is contained in:
@@ -36,10 +36,12 @@ export class RestaurantsController {
|
||||
create(@Body() createRestaurantDto: CreateRestaurantDto) {
|
||||
return this.restaurantsService.create(createRestaurantDto);
|
||||
}
|
||||
|
||||
@Get('admin/restaurants')
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Get all restaurants' })
|
||||
@ApiResponse({ status: 200, description: 'Restaurants found' })
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.restaurantsService.findAll();
|
||||
}
|
||||
@@ -50,7 +52,7 @@ export class RestaurantsController {
|
||||
@ApiOperation({ summary: 'Get restaurant by ID from request' })
|
||||
@ApiResponse({ status: 200, description: 'Restaurant found' })
|
||||
@ApiNotFoundResponse({ description: 'Restaurant not found' })
|
||||
@Get('my-restaurant')
|
||||
@Get('admin/restaurants/my-restaurant')
|
||||
async findOne(@RestId() restId: string) {
|
||||
return await this.restaurantsService.findOne(restId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user