mirror of
https://github.com/grocy/grocy.git
synced 2026-10-17 05:14:20 +02:00
Fixed 404 error handling
This commit is contained in:
parent
c0a9d615fa
commit
d565abc3aa
|
|
@ -25,6 +25,11 @@ class ExceptionController extends BaseApiController
|
|||
|
||||
public function __invoke(ServerRequestInterface $request, Throwable $exception, bool $displayErrorDetails, bool $logErrors, bool $logErrorDetails, ?LoggerInterface $logger = null)
|
||||
{
|
||||
if (!defined('GROCY_LOCALE'))
|
||||
{
|
||||
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||
}
|
||||
|
||||
$response = $this->ResponseFactory->createResponse();
|
||||
$isApiRoute = string_starts_with($request->getUri()->getPath(), '/api/');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user