fix: user not been able to add new user on langflow docker (#3538)

🐛 (use-post-add-user.ts): fix API endpoint URL to include trailing slash for consistency and to ensure correct routing
This commit is contained in:
Cristhian Zanforlin Lousa 2024-08-26 09:56:38 -03:00 committed by GitHub
commit 7fdfe10098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ export const useAddUser: useMutationFunctionType<undefined, UserInputType> = (
const addUserFunction = async (
user: UserInputType,
): Promise<Array<Users>> => {
const res = await api.post(`${getURL("USERS")}`, user);
const res = await api.post(`${getURL("USERS")}/`, user);
return res.data;
};