mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 05:38:06 +03:00
30 lines
702 B
PHP
30 lines
702 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,
|
|
Helper\UrlHelperMiddleware::class,
|
|
ApplicationFactory::DISPATCH_MIDDLEWARE,
|
|
],
|
|
'priority' => 1,
|
|
],
|
|
|
|
'error' => [
|
|
'middleware' => [],
|
|
'error' => true,
|
|
'priority' => -10000,
|
|
],
|
|
],
|
|
];
|