mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
PSR7-decoupled rework of authentication fixup (#697)
This commit is contained in:
@@ -132,7 +132,7 @@ $app->group('', function(RouteCollectorProxy $group)
|
||||
$group->get('/api', '\Grocy\Controllers\OpenApiController:DocumentationUi');
|
||||
$group->get('/manageapikeys', '\Grocy\Controllers\OpenApiController:ApiKeysList');
|
||||
$group->get('/manageapikeys/new', '\Grocy\Controllers\OpenApiController:CreateNewApiKey');
|
||||
})->add(new SessionAuthMiddleware($container, $container->get('LoginControllerInstance')->GetSessionCookieName()));
|
||||
})->add(new SessionAuthMiddleware($container, $container->get('LoginControllerInstance')->GetSessionCookieName(), $app->getResponseFactory()));
|
||||
|
||||
$app->group('/api', function(RouteCollectorProxy $group)
|
||||
{
|
||||
|
Reference in New Issue
Block a user