
- Set up FastAPI application with CORS support - Configure SQLite database connection - Create database models for users, clients, invoices, and line items - Set up Alembic for database migrations - Implement JWT-based authentication system - Create basic CRUD endpoints for users, clients, and invoices - Add PDF generation functionality - Implement activity logging - Update README with project information
13 lines
408 B
Python
13 lines
408 B
Python
from fastapi import APIRouter, Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
from app.db.session import get_db
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health", tags=["health"])
|
|
async def health_check(db: AsyncSession = Depends(get_db)):
|
|
"""
|
|
Health check endpoint to verify the API is running and database connection is working.
|
|
"""
|
|
return {"status": "ok", "message": "API is running"} |