Add support for routes passed as options