feat: student send join req
This commit is contained in:
parent
70d4c80093
commit
3093a6c131
12 changed files with 347 additions and 169 deletions
18
backend/src/routes/student-join-requests.ts
Normal file
18
backend/src/routes/student-join-requests.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import express from "express";
|
||||
import {
|
||||
createStudentRequestHandler, deleteClassJoinRequestHandler,
|
||||
getStudentRequestHandler,
|
||||
updateClassJoinRequestHandler
|
||||
} from "../controllers/students";
|
||||
|
||||
const router = express.Router({ mergeParams: true });
|
||||
|
||||
router.get('/', getStudentRequestHandler);
|
||||
|
||||
router.post('/:classId', createStudentRequestHandler);
|
||||
|
||||
router.put('/:classId', updateClassJoinRequestHandler);
|
||||
|
||||
router.delete('/:classId', deleteClassJoinRequestHandler);
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue