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
9
backend/src/routes/submission.ts
Normal file
9
backend/src/routes/submission.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import express from 'express'
|
||||
const router = express.Router();
|
||||
|
||||
// information about an submission with id 'id'
|
||||
router.get('/:id', (req, res) => {
|
||||
res.send('submission');
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue