mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +00:00
22 lines
370 B
JavaScript
22 lines
370 B
JavaScript
|
|
|
||
|
|
const { linename } = require('../../../../lib/db');
|
||
|
|
|
||
|
|
module.exports = async function (req, res, next) {
|
||
|
|
|
||
|
|
try {
|
||
|
|
const payload = req.body;
|
||
|
|
|
||
|
|
const properties = await linename.properties.get(req.params.project, payload);
|
||
|
|
if (properties) {
|
||
|
|
res.status(200).send(properties);
|
||
|
|
} else {
|
||
|
|
res.status(404).send();
|
||
|
|
}
|
||
|
|
next();
|
||
|
|
} catch (err) {
|
||
|
|
next(err);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
};
|