reverted to 404 sith empty array

This commit is contained in:
Joe Dowd
2020-10-06 23:22:48 +01:00
parent fe91d13ff3
commit 62916f6a7e

View File

@@ -29,5 +29,5 @@ module.exports = async function (req, res) {
};
});
res.status(200).json(segments);
res.status((segments.length === 0) ? 404 : 200).json(segments);
}