From 55ca40ab8aba754cd3a7fc458bb3d2854c690be0 Mon Sep 17 00:00:00 2001 From: Sean Edmunds Date: Thu, 5 Dec 2024 14:52:28 -0600 Subject: [PATCH] POST hotfix --- src/hooks/useAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useAPI.ts b/src/hooks/useAPI.ts index a87dca4..c479cb3 100644 --- a/src/hooks/useAPI.ts +++ b/src/hooks/useAPI.ts @@ -94,7 +94,7 @@ export function useMutationAPI() { body: JSON.stringify(body), }; - const response = await fetch(url, options); + const response = await fetch(`${url}/${endpoint}`, options); if (!response.ok) { const responseData = await response.json(); if (typeof responseData.detail !== 'string') {