Skip to content

Commit

Permalink
fix: user not been able to add new user on langflow docker (#3538)
Browse files Browse the repository at this point in the history
🐛 (use-post-add-user.ts): fix API endpoint URL to include trailing slash for consistency and to ensure correct routing
  • Loading branch information
Cristhianzl authored Aug 26, 2024
1 parent 0818d88 commit 7fdfe10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 7fdfe10

Please sign in to comment.