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 submission with id 'id'
|
||||
router.get('/:id', (req, res) => {
|
||||
res.send('submission');
|
||||
res.json({
|
||||
id: req.params.id,
|
||||
student: '0',
|
||||
group: '0',
|
||||
time: new Date(2025, 1, 1),
|
||||
content: 'Wortel 2 is rationeel',
|
||||
learningObject: '0',
|
||||
});
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue