feat(backend): Endpoints van klassen en leerkrachten beschermd.

This commit is contained in:
Gerald Schmittinger 2025-04-08 15:45:20 +02:00
parent 9339eca9cf
commit 2252326234
3 changed files with 31 additions and 6 deletions

View file

@ -41,7 +41,7 @@ export function handleGetFrontendAuthConfig(_req: Request, res: Response): void
res.json(getFrontendAuthConfig());
}
export async function handleHello(req: AuthenticatedRequest) {
export async function handleHello(req: AuthenticatedRequest): Promise<void> {
const auth: AuthenticationInfo = req.auth!;
if (auth.accountType === "teacher") {
await createTeacher({