Yassine Mhirsi
Redirect root endpoint to API documentation instead of returning API information
b0001af
| """Root endpoint for API information""" | |
| from fastapi import APIRouter | |
| from fastapi.responses import RedirectResponse | |
| router = APIRouter() | |
| async def root(): | |
| """Redirect root to API documentation""" | |
| return RedirectResponse(url="/docs") | |