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