mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
payment | webhook
This commit is contained in:
@@ -65,24 +65,24 @@ export class PaymentController {
|
||||
}
|
||||
|
||||
|
||||
@Get("test")
|
||||
handleTest(@Res() res: Response) {
|
||||
// @Get("test")
|
||||
// handleTest(@Res() res: Response) {
|
||||
|
||||
|
||||
const filePath = path.join(__dirname, "templates", "payment.hbs");
|
||||
console.log(filePath)
|
||||
console.log(__dirname)
|
||||
if (fs.existsSync(filePath)) {
|
||||
const source = fs.readFileSync(filePath, "utf8");
|
||||
const template = Handlebars.compile(source);
|
||||
// const filePath = path.join(__dirname, "templates", "payment.hbs");
|
||||
// console.log(filePath)
|
||||
// console.log(__dirname)
|
||||
// if (fs.existsSync(filePath)) {
|
||||
// const source = fs.readFileSync(filePath, "utf8");
|
||||
// const template = Handlebars.compile(source);
|
||||
|
||||
const html = template({
|
||||
url: "https://example.com"
|
||||
});
|
||||
// const html = template({
|
||||
// url: "https://example.com"
|
||||
// });
|
||||
|
||||
res.send(html)
|
||||
}
|
||||
}
|
||||
// res.send(html)
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user