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