2022-11-13 11:16:30 -05:00
|
|
|
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) {
|
2022-11-13 11:16:30 -05:00
|
|
|
console.log('--- kiri main module started ---');
|
2022-01-30 10:47:08 -05:00
|
|
|
|
|
|
|
|
// 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
|
|
|
});
|