map routers gemaakt met router files in, backend/src/app.ts bevat verwijzingen naar deze files met app.use
This commit is contained in:
parent
c07bb959cf
commit
f45a9aa5a5
9 changed files with 112 additions and 0 deletions
14
backend/src/routes/group.ts
Normal file
14
backend/src/routes/group.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import express from 'express'
|
||||
const router = express.Router();
|
||||
|
||||
// information about a group (members, ... [TODO DOC])
|
||||
router.get('/:id', (req, res) => {
|
||||
res.send('group');
|
||||
})
|
||||
|
||||
// the list of questions a group has made
|
||||
router.get('/:id/questions', (req, res) => {
|
||||
res.send('questions');
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue