diff options
Diffstat (limited to 'frontend/src/api/User.ts')
| -rw-r--r-- | frontend/src/api/User.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/api/User.ts b/frontend/src/api/User.ts index 4ce21e1..004aa22 100644 --- a/frontend/src/api/User.ts +++ b/frontend/src/api/User.ts | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import axios from 'axios'; | 1 | import axios from "axios"; |
| 2 | import { url } from '@api/Api'; | 2 | import { url } from "@api/Api"; |
| 3 | import { UserProfile } from '@customTypes/Profile'; | 3 | import { UserProfile } from "@customTypes/Profile"; |
| 4 | 4 | ||
| 5 | export const get_user = async (user_id: string): Promise<UserProfile> => { | 5 | export const get_user = async (user_id: string): Promise<UserProfile> => { |
| 6 | const response = await axios.get(url(`users/${user_id}`)); | 6 | const response = await axios.get(url(`users/${user_id}`)); |