init(frontend): add frontend server

also add static files and auth page
This commit is contained in:
2025-01-07 00:03:30 +03:00
parent cb14672113
commit 37d40497d1
13 changed files with 231 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
$("#auth").on("submit", function (e) {
e.preventDefault();
$.ajax({
url: "/api/auth",
type: "POST",
data: $("#auth").serialize(),
dataType: "json",
success: function (resp) {
location.reload();
},
error: function (err) {
$("#error-message").text(err.responseJSON.error);
$("#error").removeClass("hidden");
},
});
});