Files
dougal-software/lib/www/server/api/middleware/label/list.js
D. Berge a73376572b API: Add label querying endpoint.
Labels can be associated with events and can have
display properties such as a description and colour,
this is why we need an endpoint for the client to
retrieve them.
2020-08-12 11:41:28 +02:00

10 lines
185 B
JavaScript

const { label } = require('../../../lib/db');
module.exports = async function (req, res, next) {
res.status(200).send(await label.list(req.params.project, req.query));
next();
};