feat(auth): Added authentication
This commit is contained in:
parent
d85d4334f8
commit
5e100c75ed
39 changed files with 704 additions and 86 deletions
|
|
@ -11,7 +11,7 @@ export interface Server {
|
|||
|
||||
export const getServerList = async (): Promise<Array<Server>> => {
|
||||
console.log("fetching server list");
|
||||
const response = await axios.get<Array<Server>>(`${apiUrl}/servers`);
|
||||
const response = await axios.get<Array<Server>>(`${apiUrl}/servers`, { withCredentials: true });
|
||||
|
||||
console.log(response);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue