diff --git a/Slon/Http/AdminServer.HC b/Slon/Http/AdminServer.HC index 3b6e03a..6589d28 100644 --- a/Slon/Http/AdminServer.HC +++ b/Slon/Http/AdminServer.HC @@ -324,6 +324,10 @@ U0 @slon_admin_server_get(SlonHttpSession* session) @slon_admin_manage_accounts(session); return; } + if (!StrICmp("/manage/instance", session->path())) { + session->send(db->o("instance")); + return; + } if (!StrICmp("/", session->path())) { @slon_http_send_html_file(session, "M:/Slon/Static/html/admin/main.html"); @@ -357,7 +361,7 @@ U0 @slon_admin_server_post(SlonHttpSession* session) @slon_http_parse_request_as_json(session); } - if (!StrICmp("/setup/instance", session->path())) { + if (!StrICmp("/setup/instance", session->path()) || !StrICmp("/save/instance", session->path())) { @slon_admin_setup_instance(session); return; } diff --git a/Slon/Static/html/admin/main.html b/Slon/Static/html/admin/main.html index c93a857..281c9cb 100644 --- a/Slon/Static/html/admin/main.html +++ b/Slon/Static/html/admin/main.html @@ -65,7 +65,7 @@ } async function manageAccounts(page) { clearActiveLinks(); - const request = new Request("/manage/accounts?skip=" + (page*10).toString()); + const request = new Request("/manage/accounts?skip=" + (page * 10).toString()); const response = await fetch(request); const result = await response.json(); const accounts = result["accounts"]; @@ -73,7 +73,7 @@ if (accounts.length) { html += "
| id | acct | display_name | type | delete | |
|---|---|---|---|---|---|
| " + accounts[i]["id"] + " | " + accounts[i]["acct"] + " | " + accounts[i]["display_name"] + " | "+ (accounts[i]["remote_actor"] == undefined ? "local" : "remote") + " | ❌ | |
| " + accounts[i]["id"] + " | " + accounts[i]["acct"] + " | " + accounts[i]["display_name"] + " | " + (accounts[i]["remote_actor"] == undefined ? "local" : "remote") + " | ❌ | |