MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _should_check_api_key

Function _should_check_api_key

fastapi_app/middleware/api_key.py:147–150  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

145
146
147def _should_check_api_key(path: str) -> bool:
148 if path.startswith("/api/v1/files/onlyoffice/download/") and path.endswith(".pptx"):
149 return False
150 return path.startswith("/api/") or path.startswith("/paper2video/")
151
152
153def _blocked_public_output_prefixes() -> set[str]:

Callers 1

dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected