Download apps/message_hub/api/__init__.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/message_hub/api/__init__.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/message_hub/api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/message_hub/api/__init__.py
283 Bytes
| """收件箱 API 路由注册。""" | |
| from ninja import Router | |
| from apps.core.security.auth import JWTOrSessionAuth | |
| from .inbox_api import router as inbox_router | |
| router = Router(auth=JWTOrSessionAuth()) | |
| router.add_router("", inbox_router, tags=["收件箱"]) | |
| __all__ = ["router"] | |