changed fetch urls

This commit is contained in:
2026-01-20 19:23:53 +01:00
parent 28c9095069
commit 5052b3e83a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export const MainForm = () => {
// Fetch user data or any other data needed for the form
try {
const fetchUsers = async () => {
const response = await fetch("http://localhost:8004/default/users");
const response = await fetch("/backend/default/users");
const data = await response.json();
setUsers(data.users);
};
@@ -78,7 +78,7 @@ export const MainForm = () => {
const confirmUser = async (selectedUser: string) => {
try {
const response = await fetch(
`http://localhost:8004/default/confirm-user?username=${selectedUser}`
`/backend/default/confirm-user?username=${selectedUser}`
);
const data = await response.json();
setNextID(data.nextID);