File size: 440 Bytes
75706d4 |
1 2 3 4 5 6 7 8 9 10 11 |
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");
|