perf(web): embed static files and templates

This commit is contained in:
2025-01-07 19:21:53 +03:00
parent 6ed054d56a
commit 02fb86049d
49 changed files with 27 additions and 7 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");
},
});
});