Commit 99a8cafc authored by Torstein Nicolaysen's avatar Torstein Nicolaysen
Browse files

DEICH-5445 return not found when service has enabled 'dontShowOnWeb'

parent 534c6fd2
......@@ -92,6 +92,11 @@ routes.get("/:id", async (request, response) => {
const json = await res.json();
if (json.dontShowOnWeb === true) {
response.sendStatus(404);
return;
}
// Remove internal data
const cleanedResult = searchParser.processLibraryService(json);
response.status(200).send(cleanedResult);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment