Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // import {AXIOS} from '../common/server';
- import { api } from '../boot/axios'
- import header from '../common/header'
- import util from '../tools/utility'
- class AuthService {
- AuthLogin(data: any) {
- let config = header.authHeaderLogin()
- return api.post('/v1/auth/authenticate', data, config)
- }
- AuthLogout() {
- let config = header.authHeaderLogin()
- return api.get(`/v1/auth/logout`, config)
- }
- ChangePassword(data: any) {
- return api.post(`v1/user/force/change-password`, data)
- }
- // GetListMenu() {
- // let config = header.authHeader(deviceId)
- // return api.get('/adm/user/my-profile', config)
- // }
- }
- export default new AuthService()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement