mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:07:09 +00:00
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.
10 lines
185 B
JavaScript
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();
|
|
|
|
};
|