Yassine Mhirsi
first test
9db766f
raw
history blame
564 Bytes
"""Root endpoint for API information"""
from fastapi import APIRouter
router = APIRouter()
@router.get("/", response_model=dict, tags=["General"])
async def root():
"""Root endpoint with API information"""
return {
"message": "NLP Project API",
"version": "1.0.0",
"features": {
"stance_detection": {
"predict": "/predict",
"batch_predict": "/batch-predict"
}
},
"endpoints": {
"health": "/health",
"docs": "/docs"
}
}