Created
October 31, 2017 06:04
-
-
Save chnbohwr/5a5f6a05d6085ef0d468dcd96bbee16a to your computer and use it in GitHub Desktop.
get user profile by axios
This file contains hidden or 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 getMyProfile = async() => { | |
| try { | |
| const response = await axios.get('/api/myProfile'); | |
| return response.data; | |
| } catch(e) { | |
| throw e; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment