Share: Provide API-endpoint for items collection #3
@ -11,7 +11,7 @@ router.route("/")
|
||||
database.share.collection(result => {
|
||||
res.json(result).status(200).end();
|
||||
})
|
||||
})
|
||||
});
|
||||
router.route("/:id")
|
||||
.get((req, res) => {
|
||||
database.share.byId(req.params.id, result => {
|
||||
|
Loading…
Reference in New Issue
Block a user