mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -04:00
update api methods
This commit is contained in:
parent
5f8711833f
commit
47260e79a1
|
@ -32,11 +32,11 @@ export async function createSession(
|
|||
}
|
||||
|
||||
export async function getMe(): Promise<Carpool.User> {
|
||||
let result = await makeAPIGetCall('/users/@me');
|
||||
let result = await makeAPIGetCall('/user', { userID: '@me' });
|
||||
return result.data.data;
|
||||
}
|
||||
|
||||
export async function getPublicUser(id: string): Promise<Carpool.PublicUser> {
|
||||
let result = await makeAPIGetCall('/users/' + id);
|
||||
let result = await makeAPIGetCall('/user', { userID: id });
|
||||
return result.data.data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user