tildefriends/apps/cory/admin/app.js

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();