MCPcopy
hub / github.com/fastapi/fastapi / _join_frontend_paths

Function _join_frontend_paths

fastapi/routing.py:1836–1841  ·  view source on GitHub ↗
(prefix: str, path: str)

Source from the content-addressed store, hash-verified

1834
1835
1836def _join_frontend_paths(prefix: str, path: str) -> str:
1837 if not prefix:
1838 return path
1839 if path == "/":
1840 return prefix
1841 return prefix + path
1842
1843
1844def _frontend_path_specificity(path: str) -> int:

Callers 2

_matchMethod · 0.85
frontendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…