Merge branch 'Max/Backend/GetUserById' into wal/front/listingUsers
This commit is contained in:
@ -72,7 +72,7 @@ export async function createUser(firstname, lastname, birthDate, email, address,
|
||||
* if the user is not authenticated. then an empty array should be returned
|
||||
*/
|
||||
export async function getUser(id){
|
||||
const endpoint = "/user" + id != null ? "/" + id : "";
|
||||
const endpoint = "/user/" + id;
|
||||
return restGet(endpoint);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user