Spaces:
Runtime error
Runtime error
| """ | |
| Basic API for Vercel deployment without database dependencies | |
| """ | |
| from fastapi import FastAPI | |
| app = FastAPI(title="Todo API - Basic", version="1.0.0") | |
| def root(): | |
| """Root endpoint for health check.""" | |
| return { | |
| "message": "Todo API is running on Vercel", | |
| "status": "healthy", | |
| "deployment": "serverless", | |
| "note": "Full functionality requires database setup" | |
| } | |
| def health(): | |
| """Health check endpoint.""" | |
| return {"status": "healthy", "timestamp": "2026-01-14"} | |
| def status(): | |
| """Status endpoint.""" | |
| return { | |
| "api": "Todo API", | |
| "version": "2.0.0", | |
| "status": "deployed", | |
| "platform": "Vercel serverless", | |
| "database_status": "not connected (requires external database)" | |
| } |