| import axiosClient from "./axiosClient"; | |
| import { ILogin, ILoginResponse, IRegister, IRegisterResponse } from "../../interfaces/auth"; | |
| export const register = async (data: IRegister) => | |
| await axiosClient.post<IRegisterResponse>("/auth/register", data); | |
| export const login = async (data: ILogin) => | |
| await axiosClient.post<ILoginResponse>("/auth/login", data); | |
| export const logout = async () => await axiosClient.post("/auth/logout"); | |