Commit 66f6fbaf authored by Fabian Reimeier's avatar Fabian Reimeier
Browse files

removed unnecessary code

parent 80b24733
......@@ -59,8 +59,6 @@ $app->group('/object', function() use ($app) {
$specimen = $databaseUtil->getSpecimenEscaped($barcode);
$iiif = $databaseUtil->getIIIF($barcode);
//return $response->withJSON($iiif);
## If no iiif data for barcode was found, return 404
if(!isset($iiif))
return $this->view->render($response, '404.template.twig')->withStatus(404);
......
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