mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:47:07 +00:00
17 lines
306 B
JavaScript
17 lines
306 B
JavaScript
|
|
const { info } = require('../../../lib/db');
|
|
|
|
module.exports = async function (req, res, next) {
|
|
|
|
try {
|
|
const payload = req.body;
|
|
|
|
await info.post(req.params.project, req.params.path, payload, undefined, req.user?.operations);
|
|
res.status(201).send();
|
|
next();
|
|
} catch (err) {
|
|
next(err);
|
|
}
|
|
|
|
};
|