forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postSchoolEnter.ts8 lines, 403 bytesHistoryRawDownload
1import { client } from "../client";
2import type { User } from "../client";
3
4// Support access: swaps the builder cookie for an ordinary session of one of
5// the school's admins. Refused (403) on a suspended school.
6export function postSchoolEnter(slug: string, body: { username: string }): Promise<User> {
7 return client<User>(`/schools/${encodeURIComponent(slug)}/enter`, { method: "POST", body });
8}