Listado proyectos
This commit is contained in:
@ -19,6 +19,9 @@ class NotFound
|
||||
} catch (HttpNotFoundException $exception) {
|
||||
$this->logger->warning($exception);
|
||||
$response = $this->responseFactory->createResponse(404);
|
||||
if (str_contains($request->getUri()->getPath(), '/api')) {
|
||||
return $response;
|
||||
}
|
||||
return $this->view->render($response, 'not_found');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user