databank verbinding in app.ts uitgezet, dummy json bodies toegevoegd in verschillende routes

This commit is contained in:
Adriaan Jacquet 2025-02-25 12:27:57 +01:00
parent deb5d772cb
commit 16b8ab368b
9 changed files with 74 additions and 20 deletions

View file

@ -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