router.resolve({ path, ...context }) → Promise<any>

Traverses the list of routes in the same order they were defined, finds the first route matching the provided URL path string and whose action method returns anything other than null or undefined