forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postRegister.ts11 lines, 281 bytesHistoryRawDownload
1import { client } from "./client";
2import type { User } from "./types";
3
4export type RegisterBody = {
5 username: string;
6 password: string;
7};
8
9export function postRegister(body: RegisterBody): Promise<User> {
10 return client<User>("/auth/register", { method: "POST", body });
11}