Revert "auth"

This reverts commit a18debbf21.
This commit is contained in:
2026-05-09 01:18:08 +01:00
parent a76b559a0e
commit ae7505d651
327 changed files with 16 additions and 66 deletions

View File

@@ -118,7 +118,7 @@ if (moveConfirmBtn) {
return;
}
const res = await window.orgAuth.fetch(`/api/competencies/items/${itemId}/state`, {
const res = await fetch(`/api/competencies/items/${itemId}/state`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ state: to }),
@@ -192,7 +192,7 @@ function createColumn(state, items, counts) {
list.addEventListener("drop", async () => {
if (!draggedItemId) return;
const res = await window.orgAuth.fetch(`/api/competencies/items/${draggedItemId}/state`, {
const res = await fetch(`/api/competencies/items/${draggedItemId}/state`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ state: state.key }),
@@ -228,7 +228,7 @@ function renderBoard(items) {
}
async function loadBoard() {
const res = await window.orgAuth.fetch(`/api/competencies/items?group=${currentLevel}`);
const res = await fetch(`/api/competencies/items?group=${currentLevel}`);
const items = await res.json();
updateProgress(items);