feat: group verbinding tussen databank en api aangemaakt
This commit is contained in:
parent
baf43e91de
commit
3f62ab70e1
6 changed files with 104 additions and 24 deletions
|
@ -1,9 +1,9 @@
|
|||
import express from 'express'
|
||||
import { getAssignmentHandler } from '../controllers/assignments';
|
||||
import groupRouter from './group.js';
|
||||
|
||||
const router = express.Router({ mergeParams: true });
|
||||
|
||||
|
||||
|
||||
// root endpoint used to search objects
|
||||
router.get('/', (req, res) => {
|
||||
res.json({
|
||||
|
@ -25,14 +25,6 @@ router.get('/:id/submissions', (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
router.get('/:id/groups', (req, res) => {
|
||||
res.json({
|
||||
groups: [
|
||||
'0'
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
router.get('/:id/questions', (req, res) => {
|
||||
res.json({
|
||||
questions: [
|
||||
|
@ -41,4 +33,6 @@ router.get('/:id/questions', (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
router.use('/:assignmentid/groups', groupRouter);
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue