feat: root paden toegevoegd aan endpoints
This commit is contained in:
parent
2e87710fe6
commit
b85374afa8
7 changed files with 71 additions and 1 deletions
|
@ -1,6 +1,16 @@
|
|||
import express from 'express'
|
||||
const router = express.Router();
|
||||
|
||||
// root endpoint used to search objects
|
||||
router.get('/', (req, res) => {
|
||||
res.json({
|
||||
submissions: [
|
||||
'0',
|
||||
'1',
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
// information about an submission with id 'id'
|
||||
router.get('/:id', (req, res) => {
|
||||
res.json({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue