This commit is contained in:
王子琦
2026-01-13 13:55:40 +08:00
parent 6affd0c77e
commit f58e05d962
72 changed files with 3251 additions and 0 deletions

6
frontend/src/api/auth.js Normal file
View File

@@ -0,0 +1,6 @@
import http from './http';
export const login = (data) => http.post('/auth/login', data);
export const register = (data) => http.post('/auth/register', data);
export const me = () => http.get('/auth/me');
export const logout = () => http.post('/auth/logout');