databank verbinding in app.ts uitgezet, dummy json bodies toegevoegd in verschillende routes
This commit is contained in:
parent
deb5d772cb
commit
16b8ab368b
9 changed files with 74 additions and 20 deletions
|
@ -3,7 +3,14 @@ const router = express.Router();
|
|||
|
||||
// information about an assignment with id 'id'
|
||||
router.get('/:id', (req, res) => {
|
||||
res.send('assignment');
|
||||
res.json({
|
||||
id: req.params.id,
|
||||
title: 'Dit is een test assignment',
|
||||
description: 'Een korte beschrijving',
|
||||
groups: [ '0' ],
|
||||
learningPath: '0',
|
||||
class: '0'
|
||||
});
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue