Set Link header in PHP so it can work in a subfolder

This commit is contained in:
Pierre Rudloff 2020-10-20 23:10:14 +02:00
parent bd61320cfc
commit 496ac212e2
3 changed files with 48 additions and 1 deletions

View file

@ -8,6 +8,7 @@ use Alltube\Controller\FrontController;
use Alltube\Controller\JsonController;
use Alltube\CspMiddleware;
use Alltube\ErrorHandler;
use Alltube\LinkHeaderMiddleware;
use Alltube\LocaleManagerFactory;
use Alltube\LocaleMiddleware;
use Alltube\LoggerFactory;
@ -44,6 +45,7 @@ try {
$app->add(new LocaleMiddleware($container));
$app->add(new RouterPathMiddleware($container));
$app->add(new CspMiddleware($container));
$app->add(new LinkHeaderMiddleware($container));
// Controllers.
$frontController = new FrontController($container);