mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 06:57:07 +00:00
Set correct Content-Type
This commit is contained in:
@@ -4,6 +4,7 @@ const { gis } = require('../../../../lib/db');
|
||||
module.exports = async function (req, res, next) {
|
||||
|
||||
try {
|
||||
res.set("Content-Type", "application/geo+json");
|
||||
res.status(200).send(await gis.project.bbox(req.params.project));
|
||||
next();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user