include generated files
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user