diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 13:59:12 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 12:59:12 +0300 |
| commit | 69aeb7889ac136a8e4fbe7de1330298e30345479 (patch) | |
| tree | 6b2cd2d420105dc7ffad3c3649df359f634cae77 /frontend/src/api/User.ts | |
| parent | feat/rankings: update wr for 3 maps (#279) (diff) | |
| download | lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.gz lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.bz2 lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.zip | |
feat/frontend: switch to vite, update node to v22 (#281)
Diffstat (limited to 'frontend/src/api/User.ts')
| -rw-r--r-- | frontend/src/api/User.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/api/User.ts b/frontend/src/api/User.ts index 88da0f2..995902c 100644 --- a/frontend/src/api/User.ts +++ b/frontend/src/api/User.ts | |||
| @@ -8,7 +8,7 @@ export const get_user = async (user_id: string): Promise<UserProfile> => { | |||
| 8 | }; | 8 | }; |
| 9 | 9 | ||
| 10 | export const get_profile = async (token: string): Promise<UserProfile> => { | 10 | export const get_profile = async (token: string): Promise<UserProfile> => { |
| 11 | const response = await axios.get(url(`profile`), { | 11 | const response = await axios.get(url("profile"), { |
| 12 | headers: { | 12 | headers: { |
| 13 | "Authorization": token, | 13 | "Authorization": token, |
| 14 | } | 14 | } |
| @@ -17,7 +17,7 @@ export const get_profile = async (token: string): Promise<UserProfile> => { | |||
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | export const post_profile = async (token: string) => { | 19 | export const post_profile = async (token: string) => { |
| 20 | const _ = await axios.post(url(`profile`), {}, { | 20 | await axios.post(url("profile"), {}, { |
| 21 | headers: { | 21 | headers: { |
| 22 | "Authorization": token, | 22 | "Authorization": token, |
| 23 | } | 23 | } |