| 123456789101112131415161718 |
- import { axios } from "@/requests/axios.config";
- const prefix = "/user";
- function loginAPI(data) {
- return axios.post(`${prefix}/login`, data);
- }
- function registerAPI(data) {
- return axios.post(`${prefix}/register`, data);
- }
- const userAPIs = {
- loginAPI,
- registerAPI,
- };
- export default userAPIs;
|