mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 13:49:03 +03:00
24 lines
580 B
PHP
24 lines
580 B
PHP
<?php
|
|
use Shlinkio\Shlink\Rest\Middleware;
|
|
|
|
return [
|
|
|
|
'middleware_pipeline' => [
|
|
'pre-routing' => [
|
|
'middleware' => [
|
|
Middleware\PathVersionMiddleware::class,
|
|
],
|
|
'priority' => 11,
|
|
],
|
|
|
|
'rest' => [
|
|
'path' => '/rest',
|
|
'middleware' => [
|
|
Middleware\CrossDomainMiddleware::class,
|
|
Middleware\BodyParserMiddleware::class,
|
|
Middleware\CheckAuthenticationMiddleware::class,
|
|
],
|
|
'priority' => 5,
|
|
],
|
|
],
|
|
];
|