Browse Source

Complete user api

pull/9/head
johnniang 6 years ago
parent
commit
ce70dcd199
  1. 22
      src/api/user.js

22
src/api/user.js

@ -0,0 +1,22 @@
import service from '@/utils/service'
const baseUrl = '/admin/api/users'
const userApi = {}
userApi.getProfile = () => {
return service({
url: `${baseUrl}/profile`,
method: 'get'
})
}
userApi.updateProfile = updatedUserProfile => {
return service({
url: `${baseUrl}/profile`,
method: 'put',
data: updatedUserProfile
})
}
export default userApi
Loading…
Cancel
Save