| """Root endpoint for API information""" | |
| from fastapi import APIRouter | |
| router = APIRouter() | |
| 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" | |
| } | |
| } | |