From 7fdfe100985efa7f387637389f5f5930cff7e9b0 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 26 Aug 2024 09:56:38 -0300 Subject: [PATCH] fix: user not been able to add new user on langflow docker (#3538) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 (use-post-add-user.ts): fix API endpoint URL to include trailing slash for consistency and to ensure correct routing --- .../src/controllers/API/queries/auth/use-post-add-user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/controllers/API/queries/auth/use-post-add-user.ts b/src/frontend/src/controllers/API/queries/auth/use-post-add-user.ts index 3bc8cc069..7abfb2a6f 100644 --- a/src/frontend/src/controllers/API/queries/auth/use-post-add-user.ts +++ b/src/frontend/src/controllers/API/queries/auth/use-post-add-user.ts @@ -13,7 +13,7 @@ export const useAddUser: useMutationFunctionType = ( const addUserFunction = async ( user: UserInputType, ): Promise> => { - const res = await api.post(`${getURL("USERS")}`, user); + const res = await api.post(`${getURL("USERS")}/`, user); return res.data; };