-
-
Save JWLangford/4acefa185ffccf21701d9e1457ed64b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getUser = async (id: string): Promise<IUserState> => { | |
const response = await axios.get(`/user/${id}`); | |
return buildUserState(response.data); | |
}; | |
const updateUser = async (user: IUserState): Promise<void> => { | |
return await axios.put("/user", { ...buildBackendUser(user) }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment