mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-23 09:30:30 +02:00
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
import {client} from "~/constants/axios-client"
|
|
|
|
export interface SignupResult {
|
|
normalizedEmail: string
|
|
}
|
|
|
|
export default async function signup(email: string): Promise<SignupResult> {
|
|
const {data} = await client.post(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/auth/signup`, {
|
|
email,
|
|
})
|
|
|
|
return data
|
|
}
|