Route
A fluent factory for league/route.
it is recommended to use router along with a dependency injection container, like league/container.
Middleware
Pass an array of global middleware to be applied to all routes.
File
Allows you to include routes from a separate routes file.
Query-based Routing
The rewrite() method allows you to route requests based on a WordPress query variable. This is useful when you want to handle requests that have already been processed by WordPress's rewrite engine.
This sets the ROUTE_PARAM attribute on the request, which the dispatcher uses to match the route.
Dispatch
Dispatch the router to connect the route with a controller method.
Resolve
Fires the response renderer. You may choose to use CodeZone\WPSupport\Router\ResponseResolver, which renders the PSR7 responses to basic WordPress style or JSON responses.