This commit is contained in:
2026-03-19 20:26:03 +00:00
parent 2d15819a70
commit b636009422

View File

@@ -13,7 +13,7 @@ const emit = defineEmits(['nextPage']);
async function login(e: SubmitEvent) { async function login(e: SubmitEvent) {
text.value = ""; text.value = "";
e.preventDefault(); e.preventDefault();
const res = await fetch("http://localhost:3000/login", { const res = await fetch("/login", {
method: "POST", method: "POST",
body: JSON.stringify({ email: email.value, pass: pass.value }), body: JSON.stringify({ email: email.value, pass: pass.value }),
headers: new Headers({'content-type': 'application/json'}) headers: new Headers({'content-type': 'application/json'})