mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 09:11:11 +00:00
Try 1 to fix the problem after Slim Framework 4 upgrade when running grocy in a subdirectory
This commit is contained in:
2
app.php
2
app.php
@@ -4,6 +4,7 @@ use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
use Slim\Factory\AppFactory;
|
||||
use Selective\BasePath\BasePathMiddleware;
|
||||
|
||||
use Grocy\Helpers\UrlManager;
|
||||
use Grocy\Controllers\LoginController;
|
||||
@@ -70,6 +71,7 @@ require_once __DIR__ . '/routes.php';
|
||||
|
||||
// Add default middleware
|
||||
$app->addRoutingMiddleware();
|
||||
$app->add(new BasePathMiddleware($app));
|
||||
$app->addErrorMiddleware(true, false, false);
|
||||
|
||||
$app->run();
|
||||
|
Reference in New Issue
Block a user