This commit is contained in:
2025-12-11 18:22:18 +03:30
parent 10b0bfe554
commit 2cf554caa4
12 changed files with 13 additions and 76 deletions
@@ -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();
// }