ggs-cron/public/scripts/test.js
Pakin 8e5421ed17
All checks were successful
CI for GGS-CRON / build-docker (push) Successful in 1m38s
CI for GGS-CRON / build-and-test (push) Successful in 3m22s
add dashboard for testing
2025-08-11 17:38:45 +07:00

24 lines
No EOL
889 B
JavaScript

console.log("Hello, World!");
function sendToOutput(message){
document.getElementById("output").value += message + "\n";
}
function getHeartBeatInfo(){
fetch("http://localhost:36530/heartbeat/info").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
}
// Sync Price Slot Command Shortcuts
//
//
function getSyncPriceInfo(){
fetch("http://localhost:36530/syncProfilePriceSlotSheet/info").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
}
function setSyncPriceRunTest(){
fetch("http://localhost:36530/syncProfilePriceSlotSheet/run/test").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
}
function setSyncPriceRunNow(){
fetch("http://localhost:36530/syncProfilePriceSlotSheet/run/now").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
}