pad suffixen in routes/student.ts en routes/group.ts veranderd naar enkelvoud
This commit is contained in:
parent
f45a9aa5a5
commit
deb5d772cb
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ router.get('/:id', (req, res) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// the list of questions a group has made
|
// the list of questions a group has made
|
||||||
router.get('/:id/questions', (req, res) => {
|
router.get('/:id/question', (req, res) => {
|
||||||
res.send('questions');
|
res.send('questions');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -2,18 +2,18 @@ import express from 'express'
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
// the list of classes a student is in
|
// the list of classes a student is in
|
||||||
router.get('/:id/classes', (req, res) => {
|
router.get('/:id/class', (req, res) => {
|
||||||
res.send('classes');
|
res.send('classes');
|
||||||
})
|
})
|
||||||
|
|
||||||
// the list of submissions a student has made
|
// the list of submissions a student has made
|
||||||
router.get('/:id/submissions', (req, res) => {
|
router.get('/:id/submission', (req, res) => {
|
||||||
res.send('submissions');
|
res.send('submissions');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// the list of assignments a student has
|
// the list of assignments a student has
|
||||||
router.get('/:id/assignments', (req, res) => {
|
router.get('/:id/assignment', (req, res) => {
|
||||||
res.send('assignments');
|
res.send('assignments');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue