Refactored file system

Changed the file system to a more ordered state and updated links in
files accordingly. Also the reffering to files is now uniform
This commit is contained in:
sraffauf
2026-01-21 17:58:15 +01:00
parent a3b261e9ae
commit 77fd4e836b
15 changed files with 99 additions and 52 deletions

View File

@@ -7,15 +7,15 @@ document.getElementById("loginForm").addEventListener("submit", async function (
formData.append("username", username);
formData.append("password", password);
const response = await fetch("backend/login.php", {
const response = await fetch("../php/login.php", {
method: "POST",
body: formData
});
const result = await response.json();
if (result.success) {
window.location.href = "admin.php";
window.location.href = "../php/admin.php";
} else {
document.getElementById("errorMsg").innerText = "Login fehlgeschlagen!";
}
});
});