refactor source code

This commit is contained in:
2024-10-29 17:42:54 +07:00
parent 3b23d9e0b7
commit 152bb50da8
83 changed files with 8473 additions and 7577 deletions

View File

@@ -7,9 +7,9 @@ import {
Param,
Body,
Headers,
} from '@nestjs/common';
import { PayosService } from './payos.service';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
} from '@nestjs/common'
import { PayosService } from './payos.service'
import { ApiTags, ApiOperation } from '@nestjs/swagger'
@ApiTags('Payos')
@Controller('payos')
@@ -23,13 +23,13 @@ export class PayosController {
@Body() body: any,
@Headers('x-payos-signature') signature: string,
) {
return this.payosService.webhook(body, signature);
return this.payosService.webhook(body, signature)
}
// ping webhook
@Get('webhook')
@ApiOperation({ summary: 'Ping webhook' })
async ping() {
return this.payosService.ping();
return this.payosService.ping()
}
}