Fix middleware order

So the base path is changed before other middlewares use it
This commit is contained in:
Pierre Rudloff 2020-10-20 23:49:23 +02:00
parent e9cee39673
commit 21964f84ba

View file

@ -43,9 +43,9 @@ try {
// Middlewares.
$app->add(new LocaleMiddleware($container));
$app->add(new RouterPathMiddleware($container));
$app->add(new CspMiddleware($container));
$app->add(new LinkHeaderMiddleware($container));
$app->add(new RouterPathMiddleware($container));
// Controllers.
$frontController = new FrontController($container);