mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 10:38:50 +01:00
feat: add sample multi-user support
feat: update README
This commit is contained in:
parent
41f351786f
commit
62d88380e0
19 changed files with 314 additions and 49 deletions
|
|
@ -3,10 +3,10 @@ import axios from 'axios';
|
|||
import useSWR from 'swr';
|
||||
import useSWRMutation from 'swr/mutation';
|
||||
|
||||
const fetcher = (url) => fetch(url).then((res) => res.json());
|
||||
const fetcher = (url) => fetch(url, {credentials: 'include'}).then((res) => res.json());
|
||||
|
||||
const postRequest = async (url, { arg }) => {
|
||||
return await axios.post(url, { arg });
|
||||
return await axios.post(url, { withCredentials: true, arg });
|
||||
};
|
||||
|
||||
export const swr = (path, successCallback, options) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue