[add] Setting up the middleware
This commit is contained in:
@@ -19,4 +19,6 @@ $app->add(new \Tuupola\Middleware\Cors([
|
||||
->withHeader("Content-Type", "application/json")
|
||||
->write(json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
|
||||
}
|
||||
]));
|
||||
]));
|
||||
|
||||
$app->add(new \Adbar\SessionMiddleware($app->getContainer()->get('settings')['session']));
|
||||
Reference in New Issue
Block a user