# File lib/grape/endpoint.rb, line 166 def to_routes route_options = prepare_default_route_attributes map_routes do |method, path| path = prepare_path(path) params = merge_route_options(route_options.merge(suffix: path.suffix)) route = Router::Route.new(method, path.path, params) route.apply(self) end.flatten end