From deb5d772cbcdf46e8593e80ce384705f87c8648d Mon Sep 17 00:00:00 2001 From: Adriaan Jacquet Date: Tue, 25 Feb 2025 11:04:52 +0100 Subject: [PATCH] pad suffixen in routes/student.ts en routes/group.ts veranderd naar enkelvoud --- backend/src/routes/group.ts | 2 +- backend/src/routes/student.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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'); })