Skip to content

Commit

Permalink
feature:FUR-49 [BE][Web] remove auth
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Jun 15, 2024
1 parent bc444b5 commit 5f986cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/review/controllers/customer.review.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import { Pagination, PaginationParams } from '@common/decorators/pagination.deco
import { CreateReviewDto, FilterReviewDto, ReviewResponseDto } from '@review/dtos/review.dto'

@ApiTags('Review - Customer')
@ApiBearerAuth()
@Roles(UserRole.CUSTOMER)
@UseGuards(JwtAuthGuard.ACCESS_TOKEN, RolesGuard)
@Controller('customer')
export class ReviewController {
constructor(private readonly reviewService: ReviewService) {}
Expand All @@ -22,6 +19,9 @@ export class ReviewController {
summary: 'Customer can review product after order completed'
})
@ApiOkResponse({ type: SuccessDataResponse })
@ApiBearerAuth()
@Roles(UserRole.CUSTOMER)
@UseGuards(JwtAuthGuard.ACCESS_TOKEN, RolesGuard)
@Post()
createReview(@Req() req, @Body() createReviewDto: CreateReviewDto) {
createReviewDto.customerId = _.get(req, 'user._id')
Expand Down

0 comments on commit 5f986cc

Please sign in to comment.