add dashboard for testing
This commit is contained in:
parent
cae03f0e30
commit
8e5421ed17
5 changed files with 100 additions and 8 deletions
|
|
@ -28,4 +28,7 @@ endpointMap = {
|
|||
|
||||
res.render("heartbeat");
|
||||
},
|
||||
'info': function(req, res, next){
|
||||
res.json(heartbeatApiInfo);
|
||||
}
|
||||
};
|
||||
|
|
@ -26,12 +26,19 @@ endpointMap = {
|
|||
|
||||
res.render("apiInfo");
|
||||
},
|
||||
"run/now": function (req, res, next) {
|
||||
GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
||||
res.send("Force run `Sync Thai Price Slots`");
|
||||
"info": function(req, res, next) {
|
||||
res.json(syncThaiProfilePriceSlotApiInfo);
|
||||
},
|
||||
"run/test": function (req, res, next) {
|
||||
GoogleFunctions.syncProfilePrice(sheet, "tha", true);
|
||||
res.send("Force run `Sync Thai Price Slots` test mode");
|
||||
"run/now": async function (req, res, next) {
|
||||
// res.json({ status: "running" });
|
||||
await GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
||||
res.json({ status: "success", message: "Force run `Sync Thai Price Slots`" });
|
||||
// res.send("Force run `Sync Thai Price Slots`");
|
||||
},
|
||||
"run/test": async function (req, res, next) {
|
||||
// res.json({ status: "running" });
|
||||
await GoogleFunctions.syncProfilePrice(sheet, "tha", true);
|
||||
res.json({ status: "success", message: "Force run `Sync Thai Price Slots` test mode" });
|
||||
// res.send("Force run `Sync Thai Price Slots` test mode");
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue