blob: 44a0ae9d19a8e94106ae0980780ca2e3549c41bc [file] [log] [blame]
import type { AxiosResponse } from "axios";
import axios from "axios";
import type { UserInfo } from "./type";
import type { CommonResponse } from "../type";
class UserAPi {
static getMe() :Promise<AxiosResponse<CommonResponse<UserInfo>>> {
return axios.get('/api/me');
}
}
export default UserAPi;