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 | |
| 3 | export type SchoolAdminPasswordBody = { |
| 4 | username: string; |
| 5 | password: string; |
| 6 | }; |
| 7 | |
| 8 | // Re-keys an admin of that school and revokes every session the account held. |
| 9 | export function postSchoolAdminPassword(slug: string, body: SchoolAdminPasswordBody): Promise<void> { |
| 10 | return client<void>(`/schools/${encodeURIComponent(slug)}/admin-password`, { method: "POST", body }); |
| 11 | } |