Added support for resolving a route using promises