class GdsApi::Router
def add_route(path, type, backend_id, options = {})
def add_route(path, type, backend_id, options = {}) response = put_json("#{endpoint}/routes", route: { incoming_path: path, route_type: type, handler: "backend", backend_id: backend_id }) commit_routes if options[:commit] response end