seeder
This commit is contained in:
@@ -14,7 +14,7 @@ import { AuthGuard } from 'src/modules/auth/guards/auth.guard';
|
||||
import { PayOrderDto } from '../dto/pay-order.dto';
|
||||
import { FindPaymentsDto } from '../dto/find-payments.dto';
|
||||
|
||||
@ApiTags('payments')
|
||||
@ApiTags('payment')
|
||||
@Controller()
|
||||
export class PaymentController {
|
||||
constructor(
|
||||
@@ -22,7 +22,7 @@ export class PaymentController {
|
||||
) { }
|
||||
|
||||
|
||||
@Get('public/payments/pay-order/:orderId')
|
||||
@Post('public/payments/pay-order/:orderId')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Pay for an order' })
|
||||
@@ -39,7 +39,7 @@ export class PaymentController {
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
@Get('admin/payments')
|
||||
@Get('public/payments')
|
||||
@ApiOperation({ summary: 'get all payments as admin' })
|
||||
findAllByUser(@UserId() userId: string, @Body() dto: FindPaymentsDto) {
|
||||
return this.paymentsService.findAllByUser(dto, userId);
|
||||
|
||||
Reference in New Issue
Block a user