forked from cory/tildefriends
13 lines
295 B
JavaScript
13 lines
295 B
JavaScript
|
import * as tfrpc from '/tfrpc.js';
|
||
|
|
||
|
tfrpc.register(function delete_user(user) {
|
||
|
return core.deleteUser(user);
|
||
|
});
|
||
|
|
||
|
async function main() {
|
||
|
let data = {
|
||
|
users: await core.users(),
|
||
|
};
|
||
|
await app.setDocument(utf8Decode(getFile('index.html')).replace('$data', JSON.stringify(data)));
|
||
|
}
|
||
|
main();
|