Automated Action 355d2a84d5 Implement notes management platform with FastAPI and SQLite
- Set up project structure with FastAPI
- Create database models for notes
- Implement Alembic migrations
- Create API endpoints for note CRUD operations
- Implement note export functionality (markdown, txt, pdf)
- Add health endpoint
- Set up linting with Ruff
2025-06-04 08:13:43 +00:00

23 lines
584 B
Python

from fastapi import APIRouter, status
from fastapi.responses import JSONResponse
from app.api.endpoints import notes
from app.core.config import settings
api_router = APIRouter()
# Include all endpoint routers
api_router.include_router(notes.router, prefix=f"{settings.API_V1_STR}/notes", tags=["notes"])
# Health endpoint
@api_router.get("/health", tags=["health"])
async def health_check():
"""
Health check endpoint to verify that the API is running.
"""
return JSONResponse(
status_code=status.HTTP_200_OK,
content={"status": "healthy"}
)