added web interface

This commit is contained in:
wt committed 2024-05-24 12:17:50 +07:00
1 parent 821ca31cf1
commit 3bff581f23
14 files changed
+298 -64

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
document.addEventListener("DOMContentLoaded", () => {
if (localStorage.getItem('token')) {
fetch(routes.access(), {
method: 'POST',
body: `{"token": "${localStorage.getItem('token')}"}`
}).then(data => data.json()).then(jsondata => {
if (jsondata.access === "success") {
document.querySelector('.loginform').classList.remove('active')
get_all_users()
}
})
}
})