find all payments
This commit is contained in:
@@ -42,12 +42,20 @@ export class PaymentController {
|
||||
|
||||
@ApiBearerAuth()
|
||||
@Get('public/payments')
|
||||
@ApiOperation({ summary: 'get all payments as admin' })
|
||||
@ApiOperation({ summary: 'get all payments as user' })
|
||||
findAllByUser(@UserId() userId: string, @Query() dto: FindPaymentsDto) {
|
||||
return this.paymentsService.findAllByUser(dto, userId);
|
||||
}
|
||||
|
||||
/*===============Admin=============== */
|
||||
/*=============== Admin =============== */
|
||||
|
||||
@ApiBearerAuth()
|
||||
@Get('public/payments')
|
||||
@ApiOperation({ summary: 'get all payments as user' })
|
||||
findAll(@Query() dto: FindPaymentsDto) {
|
||||
return this.paymentsService.findAll(dto);
|
||||
}
|
||||
|
||||
|
||||
@Post('admin/payments/:paymentId/verify/cash')
|
||||
@UseGuards(AuthGuard)
|
||||
|
||||
Reference in New Issue
Block a user