include generated files

This commit is contained in:
Matteo Rosati
2026-01-26 15:45:05 +01:00
parent a9170932e7
commit 787ef9a25c
14 changed files with 2525 additions and 9 deletions

View File

@@ -11,14 +11,12 @@ if (localStorage.getItem("token")) {
location.replace("/");
}
const API_SERVER = import.meta.env.VITE_API_SERVER!;
$("#login").on("submit", async (e) => {
e.preventDefault();
const email = $("#email");
const password = $("#password");
fetch(`${API_SERVER}/api/v1/login`, {
fetch(`/api/v1/login`, {
method: "POST",
body: JSON.stringify({
email: email.val(),