hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import 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. |
| 6 | export function postSchoolEnter(slug: string, body: { username: string }): Promise<User> { |
| 7 | return client<User>(`/schools/${encodeURIComponent(slug)}/enter`, { method: "POST", body }); |
| 8 | } |