clean
This commit is contained in:
@@ -3,15 +3,7 @@ import { RestaurantsService } from '../providers/restaurants.service';
|
||||
import { CreateRestaurantDto } from '../dto/create-restaurant.dto';
|
||||
import { UpdateRestaurantDto } from '../dto/update-restaurant.dto';
|
||||
import { AdminAuthGuard } from 'src/modules/auth/guards/adminAuth.guard';
|
||||
import {
|
||||
ApiBearerAuth,
|
||||
ApiBody,
|
||||
ApiNotFoundResponse,
|
||||
ApiOperation,
|
||||
ApiParam,
|
||||
ApiResponse,
|
||||
ApiTags,
|
||||
} from '@nestjs/swagger';
|
||||
import { ApiBearerAuth, ApiBody, ApiNotFoundResponse, ApiOperation, ApiParam, ApiTags } from '@nestjs/swagger';
|
||||
import { RestId } from 'src/common/decorators';
|
||||
|
||||
@ApiTags('restaurants')
|
||||
@@ -32,7 +24,6 @@ export class RestaurantsController {
|
||||
@Post('admin/restaurants')
|
||||
@ApiOperation({ summary: 'Create a new restaurant' })
|
||||
@ApiBody({ type: CreateRestaurantDto })
|
||||
@ApiResponse({ status: 201, description: 'Restaurant created' })
|
||||
create(@Body() createRestaurantDto: CreateRestaurantDto) {
|
||||
return this.restaurantsService.create(createRestaurantDto);
|
||||
}
|
||||
@@ -41,7 +32,6 @@ export class RestaurantsController {
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
// @ApiBearerAuth()
|
||||
// @ApiOperation({ summary: 'Get all restaurants' })
|
||||
// @ApiResponse({ status: 200, description: 'Restaurants found' })
|
||||
// findAll() {
|
||||
// return this.restaurantsService.findAll();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user