Yassine Mhirsi
Update API routes to include label module and add prefix for stance and label endpoints
693c788 Download routes/__init__.py from NLP-Debater-Project/FastAPI-Backend-Models: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/492be8be24aeee684f23a2f8a2fcc95923f429fe/routes/__init__.py
- Command line
-
hf download hf://spaces/NLP-Debater-Project/FastAPI-Backend-Models@492be8be24aeee684f23a2f8a2fcc95923f429fe/routes/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models/resolve/492be8be24aeee684f23a2f8a2fcc95923f429fe/routes/__init__.py
397 Bytes
| """API route handlers""" | |
| from fastapi import APIRouter | |
| from . import root, health, stance, label | |
| # Create main router | |
| api_router = APIRouter() | |
| # Include all route modules | |
| api_router.include_router(root.router) | |
| api_router.include_router(health.router) | |
| api_router.include_router(stance.router, prefix="/stance") | |
| api_router.include_router(label.router, prefix="/label") | |
| __all__ = ["api_router"] | |