mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: layout updates
This commit is contained in:
parent
26e077eed4
commit
88dc060bae
18 changed files with 3479 additions and 328 deletions
|
|
@ -19,7 +19,7 @@ export async function loginAndGetToken(username: string, password: string): Prom
|
|||
body: urlencoded,
|
||||
redirect: "follow",
|
||||
credentials: "include",
|
||||
};
|
||||
};
|
||||
|
||||
// fetch using await and async
|
||||
const response = await fetch(`${getAPIUrl()}auth/login`, requestOptions);
|
||||
|
|
@ -76,3 +76,5 @@ export async function signup(body: NewAccountBody): Promise<any> {
|
|||
.then((result) => result.json())
|
||||
.catch((error) => console.log("error", error));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue