first commit
This commit is contained in:
16
src/api/auth/index.js
Normal file
16
src/api/auth/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { defAxios } from '@/utils/http'
|
||||
|
||||
export const login = (data) => {
|
||||
return defAxios({
|
||||
url: '/auth/login',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export const refreshToken = () => {
|
||||
return defAxios({
|
||||
url: '/auth/refreshToken',
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user