mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:37:08 +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) {
|
module.exports = async function (req, res, next) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
res.set("Content-Type", "application/geo+json");
|
||||||
res.status(200).send(await gis.project.bbox(req.params.project));
|
res.status(200).send(await gis.project.bbox(req.params.project));
|
||||||
next();
|
next();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user