mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-31 19:26:58 -06:00
26 lines
597 B
PHP
26 lines
597 B
PHP
<?php
|
|
use Shlinkio\Shlink\Rest\Middleware;
|
|
|
|
return [
|
|
|
|
'middleware_pipeline' => [
|
|
'rest' => [
|
|
'path' => '/rest',
|
|
'middleware' => [
|
|
Middleware\CheckAuthenticationMiddleware::class,
|
|
Middleware\CrossDomainMiddleware::class,
|
|
],
|
|
'priority' => 5,
|
|
],
|
|
|
|
'rest-error' => [
|
|
'path' => '/rest',
|
|
'middleware' => [
|
|
Middleware\Error\ResponseTypeMiddleware::class,
|
|
],
|
|
'error' => true,
|
|
'priority' => -10000,
|
|
],
|
|
],
|
|
];
|