edia all routes
This commit is contained in:
@@ -114,7 +114,7 @@ function toggleTokenFields() {
|
||||
const standorte = document.getElementById("standorte").value.trim();
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/web/save-token', {
|
||||
const response = await fetch('/api/v1/web/save-token', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -477,7 +477,7 @@ function toggleTokenFields() {
|
||||
saveBtn.disabled = true;
|
||||
|
||||
// Web-authenticated API für Standortverwaltung aufrufen
|
||||
const response = await fetch('/api/web/create-location', {
|
||||
const response = await fetch('/api/v1/web/create-location', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -524,7 +524,7 @@ function toggleTokenFields() {
|
||||
// Logout-Funktion
|
||||
async function logout() {
|
||||
try {
|
||||
const response = await fetch('/api/logout', {
|
||||
const response = await fetch('/api/v1/public/logout', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user