feat: frontend skeleton done

This commit is contained in:
simonkoson
2026-05-15 09:46:42 +08:00
parent 2bee0ce8c8
commit d29b1bb394
36 changed files with 5008 additions and 0 deletions
+16
View File
@@ -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
}