diff options
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 | } |