Expose method in route config