mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:27:07 +00:00
17 lines
281 B
JavaScript
17 lines
281 B
JavaScript
|
|
const { event } = require('../../../../lib/db');
|
|
|
|
module.exports = async function (req, res, next) {
|
|
|
|
try {
|
|
const payload = req.body;
|
|
|
|
await event.import(req.params.project, payload, req.query);
|
|
res.status(200).send(payload);
|
|
next();
|
|
} catch (err) {
|
|
next(err);
|
|
}
|
|
|
|
};
|