MCPcopy Index your code
hub / github.com/fastapi/fastapi / _normalize_frontend_path

Function _normalize_frontend_path

fastapi/routing.py:1826–1833  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

1824
1825
1826def _normalize_frontend_path(path: str) -> str:
1827 if not path:
1828 raise AssertionError("A frontend path cannot be empty")
1829 if not path.startswith("/"):
1830 raise AssertionError("A frontend path must start with '/'")
1831 if path != "/":
1832 path = path.rstrip("/")
1833 return path
1834
1835
1836def _join_frontend_paths(prefix: str, path: str) -> str:

Callers 2

__init__Method · 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…