mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 09:11:11 +00:00
Revise session handling to prepare API authentication via token
This commit is contained in:
@@ -6,7 +6,7 @@ class JsonMiddleware extends BaseMiddleware
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, callable $next)
|
||||
{
|
||||
$response = $next($request, $response, $next);
|
||||
$response = $next($request, $response);
|
||||
return $response->withHeader('Content-Type', 'application/json');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user