Download apps/core/api/__init__.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/api/__init__.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/core/api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/api/__init__.py
353 Bytes
| """ | |
| Core API 模块 | |
| 提供核心功能的 API 接口. | |
| """ | |
| from ninja import Router | |
| from apps.core.security.auth import JWTOrSessionAuth | |
| # 创建 Core 模块的路由,支持 JWT 和 Session 认证 | |
| router = Router(tags=["系统配置"], auth=JWTOrSessionAuth()) | |
| __all__ = [ | |
| "router", | |
| ] | |
| # 暂时为空,后续可以添加系统配置相关的 API | |