feat(backend): Endpoints van klassen en leerkrachten beschermd.
This commit is contained in:
parent
9339eca9cf
commit
2252326234
3 changed files with 31 additions and 6 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue