From 22cb944417b8c17900deb91c87ef5ef350390dc0 Mon Sep 17 00:00:00 2001 From: anomny Date: Wed, 5 Nov 2025 19:26:30 +0100 Subject: [PATCH] Rename usages --- src/Views/Home/Locations.cshtml | 2 +- src/Views/Home/Users.cshtml | 2 +- src/wwwroot/js/site.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Views/Home/Locations.cshtml b/src/Views/Home/Locations.cshtml index 11b6d89..d95bf4a 100644 --- a/src/Views/Home/Locations.cshtml +++ b/src/Views/Home/Locations.cshtml @@ -120,7 +120,7 @@ try { const response = await fetch(url, { - method: 'GET', + method: 'DELETE', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' diff --git a/src/Views/Home/Users.cshtml b/src/Views/Home/Users.cshtml index c74f6c7..b1547a1 100644 --- a/src/Views/Home/Users.cshtml +++ b/src/Views/Home/Users.cshtml @@ -126,7 +126,7 @@ try { const response = await fetch(url, { - method: 'GET', + method: 'DELETE', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' diff --git a/src/wwwroot/js/site.js b/src/wwwroot/js/site.js index 07e0710..bfdde28 100644 --- a/src/wwwroot/js/site.js +++ b/src/wwwroot/js/site.js @@ -167,7 +167,7 @@ document.addEventListener('DOMContentLoaded', () => { async function loadLocationsIntoSelect(selectElement, selectedValue = null) { try { - const response = await fetch('/Locations/Index'); + const response = await fetch('/Locations/GetAll'); const data = await response.json(); const locations = data.locations; @@ -208,7 +208,7 @@ async function loadLocationsIntoSelect(selectElement, selectedValue = null) { async function loadUsersIntoSelect(selectElement, selectedValue = null) { try { - const response = await fetch('/Users/Index?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false'); + const response = await fetch('/Users/GetAll?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false'); const users = await response.json(); const ts = selectElement.tomselect;