Expose route config in plugin.config. Closes #1767