auth
All checks were successful
Build Org Website / build (push) Successful in 49s

This commit is contained in:
2026-05-09 00:26:04 +01:00
parent a504eb9179
commit a18debbf21
327 changed files with 66 additions and 16 deletions

View File

@@ -118,7 +118,7 @@ if (moveConfirmBtn) {
return;
}
const res = await fetch(`/api/competencies/items/${itemId}/state`, {
const res = await window.orgAuth.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 fetch(`/api/competencies/items/${draggedItemId}/state`, {
const res = await window.orgAuth.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 fetch(`/api/competencies/items?group=${currentLevel}`);
const res = await window.orgAuth.fetch(`/api/competencies/items?group=${currentLevel}`);
const items = await res.json();
updateProgress(items);