import type { Form } from "~/types/auth";
export const authRegister = async (form: Form): Promise<any> => {
console.log("Form: ", form);
return await fetch("/api/auth/register", {
method: "POST",
body: JSON.stringify(form),
});
};
import type { Form } from "~/types/auth";
export const authRegister = async (form: Form): Promise<any> => {
console.log("Form: ", form);
return await fetch("/api/auth/register", {
method: "POST",
body: JSON.stringify(form),
});
};