feat(backend): '/auth/hello' endpoint toegevoegd

This commit is contained in:
Gerald Schmittinger 2025-04-19 11:27:51 +02:00
parent c2f3a6169a
commit 2b3f6b5e7a
6 changed files with 40 additions and 7 deletions

View file

@ -1,7 +1,7 @@
import { Request, Response } from 'express';
import {
createClassJoinRequest,
createStudent,
createOrUpdateStudent,
deleteClassJoinRequest,
deleteStudent,
getAllStudents,
@ -42,7 +42,7 @@ export async function createStudentHandler(req: Request, res: Response): Promise
const userData = req.body as StudentDTO;
const student = await createStudent(userData);
const student = await createOrUpdateStudent(userData);
res.json({ student });
}