mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 10:20:18 -06:00
31 lines
686 B
PHP
31 lines
686 B
PHP
<?php
|
|
use Zend\Expressive\Container\ApplicationFactory;
|
|
use Zend\Expressive\Helper;
|
|
|
|
return [
|
|
|
|
'middleware_pipeline' => [
|
|
'always' => [
|
|
'middleware' => [
|
|
Helper\ServerUrlMiddleware::class,
|
|
],
|
|
'priority' => 10000,
|
|
],
|
|
|
|
'routing' => [
|
|
'middleware' => [
|
|
ApplicationFactory::ROUTING_MIDDLEWARE,
|
|
],
|
|
'priority' => 10,
|
|
],
|
|
|
|
'post-routing' => [
|
|
'middleware' => [
|
|
Helper\UrlHelperMiddleware::class,
|
|
ApplicationFactory::DISPATCH_MIDDLEWARE,
|
|
],
|
|
'priority' => 1,
|
|
],
|
|
],
|
|
];
|