MCPcopy
hub / github.com/AgentOps-AI/agentops / reverse_path

Function reverse_path

app/api/agentops/common/route_config.py:176–184  ·  view source on GitHub ↗

Reverse a path by name. Args: route_name (str): The name of the route to reverse (from `RouteConfig.name`)

(route_name: str)

Source from the content-addressed store, hash-verified

174
175
176def reverse_path(route_name: str) -> Optional[str]:
177 """
178 Reverse a path by name.
179 Args:
180 route_name (str): The name of the route to reverse (from `RouteConfig.name`)
181 """
182 global _path_registry
183
184 return _path_registry.get(route_name, None)
185
186
187def register_routes(router: APIRouter, configs: list[RouteConfig], prefix: str = "") -> None:

Callers 2

auth_callbackFunction · 0.90
auth_oauthFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…