38 lines
751 B
TypeScript
38 lines
751 B
TypeScript
import {
|
|
Controller,
|
|
Get,
|
|
Post,
|
|
Body,
|
|
Patch,
|
|
Param,
|
|
Delete,
|
|
HttpStatus,
|
|
Logger,
|
|
Req,
|
|
} from '@nestjs/common';
|
|
import { TransactionService } from './transaction.service';
|
|
import { DistributeTransactionDto } from './dto/distribute-transaction.dto';
|
|
import { FastifyRequest } from 'fastify';
|
|
|
|
@Controller({
|
|
path: 'ppob_callback',
|
|
version: '1',
|
|
})
|
|
export class PpobCallbackController {
|
|
private readonly logger = new Logger(PpobCallbackController.name);
|
|
|
|
constructor(private readonly transactionService: TransactionService) {}
|
|
|
|
@Get()
|
|
get(@Req() request: FastifyRequest) {
|
|
this.logger.log({
|
|
requestQuery: request.query,
|
|
});
|
|
|
|
return {
|
|
statusCode: HttpStatus.OK,
|
|
message: 'success',
|
|
};
|
|
}
|
|
}
|