server/router/share.js
Artem Anufrij 50c682e31f
All checks were successful
continuous-integration/drone/push Build is passing
wip sharing api
2023-02-16 18:19:42 +01:00

13 lines
330 B
JavaScript

console.log("router/share INIT");
var express = require("express");
var router = new express.Router();
const database = require("../services/database");
router.route("/:id").get((req, res) => {
database.share.byId(req.params.id, (result) => {
res.json(result).status(200).end();
});
});
module.exports = router;