more changes for scripts - separate API etc.

This commit is contained in:
azivner
2018-01-27 17:18:19 -05:00
parent 005480059a
commit 3f1e73d06b
7 changed files with 202 additions and 71 deletions

View File

@@ -29,12 +29,12 @@ const server = (function() {
return await call('DELETE', url);
}
async function exec(script, params = []) {
async function exec(params, script) {
if (typeof script === "function") {
script = script.toString();
}
return await post('script/exec', { script: script, params: params });
return await post('script/exec/noteId', { script: script, params: params });
}
let i = 1;