import { request } from "./client";

export const login = (username, password) =>
  request("POST", "/auth/login", null, { username, password });

export const register = (username, email, password) =>
  request("POST", "/auth/register", null, { username, email, password });

export const getMe = (token) => request("GET", "/auth/me", token);

export const getRegistrationStatus = () =>
  request("GET", "/auth/registration-status", null);
