mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
This will be used by the new event dialogue in the frontend to get shotpoint information when creating or editing events.
21 lines
371 B
JavaScript
21 lines
371 B
JavaScript
|
|
const { sequence } = require('../../../../../lib/db');
|
|
|
|
module.exports = async function (req, res, next) {
|
|
|
|
try {
|
|
const feature = await sequence.point.get(req.params.project, req.params.sequence, req.params.point, req.query)
|
|
|
|
if (feature) {
|
|
res.status(200).send(feature);
|
|
} else {
|
|
res.status(404).send();
|
|
}
|
|
next();
|
|
} catch (err) {
|
|
next(err);
|
|
}
|
|
|
|
|
|
};
|