mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(frontend): show page when login fails
This commit is contained in:
parent
cffddedc81
commit
32dcd84964
6 changed files with 35 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ const getDefaultHeaders = (): Headers => {
|
|||
};
|
||||
|
||||
export const getUsersMe = async (): Promise<User> => {
|
||||
const res = await fetch(`api/v1/users/me`, { headers: getDefaultHeaders() });
|
||||
const res = await fetch(`/api/v1/users/me`, { headers: getDefaultHeaders() });
|
||||
|
||||
switch (res.status) {
|
||||
case 200: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue