forked from cory/tildefriends
Cory McWilliams
fbfbd6a6b4
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3950 ed5197a5-7fde-0310-b194-c3ffbd925b24
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(); |