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