UNPKG

kpiplus

Version:

KPI+

1 lines 395 B
var Approve=require("../../models/approve"),configs=require("../../configs");module.exports=function(e){e.route("/approve/:id").get(function(e,o,r){let t=e.params.id;Approve.approve(t,(e,r)=>{let t="Bạn đã duyệt thành công.";e&&(t=e),o.send(`<html><head><title>${configs.program}</title></head><body><h1>${t}</h1><a href="${configs.domain}">Mở chương trình</a></body></html>`)})})};