grid-apps-cmms/sample/kiri.js

14 lines
437 B
JavaScript
Raw Normal View History

console.log('--- kiri main module start ---');
2022-01-28 12:17:52 -05:00
// the kiri api starts around line `260` of `src/kiri/main.js`
kiri.load(function(api) {
console.log('--- kiri main module started ---');
// send data to our "/postit" endpoint
fetch("/postit", {
method: "POST",
body: "this is a test of the POST url endpoint"
}).then(res => res.text()).then(text => {
console.log({server_said: text});
});
2022-01-28 12:17:52 -05:00
});