(path: str)
| 145 | |
| 146 | |
| 147 | def _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 | |
| 153 | def _blocked_public_output_prefixes() -> set[str]: |