mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added new config.php setting for subdirectory base path (closes #568)
This commit is contained in:
6
app.php
6
app.php
@@ -68,6 +68,12 @@ $container->set('ApiKeyHeaderName', function(Container $container)
|
||||
// Load routes from separate file
|
||||
require_once __DIR__ . '/routes.php';
|
||||
|
||||
// Set base path if defined
|
||||
if (!empty(GROCY_BASE_PATH))
|
||||
{
|
||||
$app->setBasePath(GROCY_BASE_PATH);
|
||||
}
|
||||
|
||||
// Add default middleware
|
||||
$app->addRoutingMiddleware();
|
||||
$app->addErrorMiddleware(true, false, false);
|
||||
|
Reference in New Issue
Block a user