From f917ee1fee149d156aaa3be2db0adcc254b2ab1a Mon Sep 17 00:00:00 2001 From: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:11:00 +0200 Subject: [PATCH] fix: removed hardcoded localhost link --- nextjs-interface/src/app/ui/dashboard/AddUserElement.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextjs-interface/src/app/ui/dashboard/AddUserElement.tsx b/nextjs-interface/src/app/ui/dashboard/AddUserElement.tsx index 549a74c..9aeafca 100644 --- a/nextjs-interface/src/app/ui/dashboard/AddUserElement.tsx +++ b/nextjs-interface/src/app/ui/dashboard/AddUserElement.tsx @@ -25,7 +25,7 @@ export function AddUserElement({ const token = getToken(); try { - const response = await fetch("http://localhost/postgrest/users", { + const response = await fetch(`/postgrest/users`, { method: "POST", headers: { "Content-Type": "application/json",