grid-apps-cmms/sample/kiri.js

14 lines
436 B
JavaScript
Raw Normal View History

2022-01-28 12:17:52 -05:00
console.log('--- in the browser main loop ---');
// the kiri api starts around line `260` of `src/kiri/main.js`
kiri.load(function(api) {
console.log('--- kiri startup complete ---');
// 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
});