Merge remote-tracking branch 'origin/feat/user-routes' into feat/user-routes
# Conflicts: # backend/src/controllers/students.ts # backend/src/services/students.ts
This commit is contained in:
commit
d2cf5b95a9
11 changed files with 37 additions and 40 deletions
|
@ -6,10 +6,11 @@ import {
|
|||
getStudent,
|
||||
getStudentAssignments,
|
||||
getStudentClasses,
|
||||
getStudentGroups, getStudentQuestions,
|
||||
getStudentGroups,
|
||||
getStudentQuestions,
|
||||
getStudentSubmissions,
|
||||
} from '../services/students.js';
|
||||
import {MISSING_FIELDS_ERROR, MISSING_USERNAME_ERROR, NAME_NOT_FOUND_ERROR} from './users.js';
|
||||
import { MISSING_FIELDS_ERROR, MISSING_USERNAME_ERROR, NAME_NOT_FOUND_ERROR } from './users.js';
|
||||
import { StudentDTO } from '../interfaces/student.js';
|
||||
|
||||
|
||||
|
@ -23,7 +24,7 @@ export async function getAllStudentsHandler(req: Request, res: Response): Promis
|
|||
return;
|
||||
}
|
||||
|
||||
res.json({students});
|
||||
res.json({ students });
|
||||
}
|
||||
|
||||
export async function getStudentHandler(req: Request, res: Response): Promise<void> {
|
||||
|
@ -153,5 +154,5 @@ export async function getStudentQuestionsHandler(req: Request, res: Response): P
|
|||
|
||||
res.json({
|
||||
questions,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue