[ 'pre-routing' => [ 'middleware' => [ ErrorHandler::class, Expressive\Helper\ContentLengthMiddleware::class, Common\Middleware\LocaleMiddleware::class, ], 'priority' => 12, ], 'pre-routing-rest' => [ 'path' => '/rest', 'middleware' => [ Rest\Middleware\PathVersionMiddleware::class, Rest\Middleware\ShortUrl\ShortCodePathMiddleware::class, ], 'priority' => 11, ], 'routing' => [ 'middleware' => [ Expressive\Router\Middleware\RouteMiddleware::class, ], 'priority' => 10, ], 'rest' => [ 'path' => '/rest', 'middleware' => [ Rest\Middleware\CrossDomainMiddleware::class, Expressive\Router\Middleware\ImplicitOptionsMiddleware::class, Rest\Middleware\BodyParserMiddleware::class, Rest\Middleware\AuthenticationMiddleware::class, ], 'priority' => 5, ], 'post-routing' => [ 'middleware' => [ Expressive\Router\Middleware\DispatchMiddleware::class, Core\Response\NotFoundHandler::class, ], 'priority' => 1, ], ], ];