Spaces:
Sleeping
Sleeping
Download backend/src/api/middleware/__init__.py from Wothmag07/Document-MCP: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/Wothmag07/Document-MCP/resolve/main/backend/src/api/middleware/__init__.py
- Command line
-
hf download hf://spaces/Wothmag07/Document-MCP/backend/src/api/middleware/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Wothmag07/Document-MCP/resolve/main/backend/src/api/middleware/__init__.py
526 Bytes
| """FastAPI middleware for authentication and error handling.""" | |
| from .auth_middleware import AuthContext, extract_user_id_from_jwt, get_auth_context | |
| from .error_handlers import ( | |
| http_exception_handler, | |
| internal_exception_handler, | |
| register_error_handlers, | |
| validation_exception_handler, | |
| ) | |
| __all__ = [ | |
| "AuthContext", | |
| "extract_user_id_from_jwt", | |
| "get_auth_context", | |
| "register_error_handlers", | |
| "validation_exception_handler", | |
| "http_exception_handler", | |
| "internal_exception_handler", | |
| ] | |