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:
parent
0818d88075
commit
7fdfe10098
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue