[ 'pre-routing' => [ 'middleware' => [ ErrorHandler::class, Expressive\Helper\ContentLengthMiddleware::class, LocaleMiddleware::class, ], 'priority' => 11, ], 'pre-routing-rest' => [ 'path' => '/rest', 'middleware' => [ PathVersionMiddleware::class, ], 'priority' => 11, ], 'routing' => [ 'middleware' => [ Expressive\Router\Middleware\RouteMiddleware::class, ], 'priority' => 10, ], 'rest' => [ 'path' => '/rest', 'middleware' => [ CrossDomainMiddleware::class, Expressive\Router\Middleware\ImplicitOptionsMiddleware::class, BodyParserMiddleware::class, CheckAuthenticationMiddleware::class, ], 'priority' => 5, ], 'post-routing' => [ 'middleware' => [ Expressive\Router\Middleware\DispatchMiddleware::class, NotFoundDelegate::class, ], 'priority' => 1, ], ], ];