shlink/module/Rest/config/middleware-pipeline.config.php
2016-07-26 19:10:01 +02:00

25 lines
555 B
PHP

<?php
use Shlinkio\Shlink\Rest\Middleware;
return [
'middleware_pipeline' => [
'rest' => [
'path' => '/rest',
'middleware' => [
Middleware\CheckAuthenticationMiddleware::class,
Middleware\CrossDomainMiddleware::class,
],
'priority' => 5,
],
'rest-not-found' => [
'path' => '/rest',
'middleware' => [
Middleware\NotFoundMiddleware::class,
],
'priority' => -1,
],
],
];