from fastapi import APIRouter, Depends from auth import get_current_user from models import User import time router = APIRouter() @router.get("/health") async def health_check(): """ Check if the API is running """ return {"status": "healthy"} @router.get("/auth-check") async def auth_check(current_user: User = Depends(get_current_user)): """ Debug endpoint to verify authentication is working """ return { "authenticated": True, "username": current_user.username, "message": "Authentication successful", }