diff --git a/backend/src/routes/group.ts b/backend/src/routes/group.ts index 87e8e6ee..36e0be6e 100644 --- a/backend/src/routes/group.ts +++ b/backend/src/routes/group.ts @@ -7,7 +7,7 @@ router.get('/:id', (req, res) => { }) // the list of questions a group has made -router.get('/:id/questions', (req, res) => { +router.get('/:id/question', (req, res) => { res.send('questions'); }) diff --git a/backend/src/routes/student.ts b/backend/src/routes/student.ts index 151b050f..55582992 100644 --- a/backend/src/routes/student.ts +++ b/backend/src/routes/student.ts @@ -2,18 +2,18 @@ import express from 'express' const router = express.Router(); // the list of classes a student is in -router.get('/:id/classes', (req, res) => { +router.get('/:id/class', (req, res) => { res.send('classes'); }) // the list of submissions a student has made -router.get('/:id/submissions', (req, res) => { +router.get('/:id/submission', (req, res) => { res.send('submissions'); }) // the list of assignments a student has -router.get('/:id/assignments', (req, res) => { +router.get('/:id/assignment', (req, res) => { res.send('assignments'); })