feat: frontend skeleton done
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import http from './http'
|
||||
|
||||
export async function login(username, password) {
|
||||
const response = await http.post('/auth/login', { username, password })
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function logout() {
|
||||
const response = await http.post('/auth/logout')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function me() {
|
||||
const response = await http.get('/auth/me')
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user