Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	File size: 558 Bytes
			
			| 460e51f 6830bc7 b77c0a2 ea1dcd3 6830bc7 ea1dcd3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | from fastapi import APIRouter, Depends
from custom_auth import get_current_user_from_token
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=Depends(get_current_user_from_token)):
    """
    Debug endpoint to verify authentication is working
    """
    return {
        "authenticated": True,
        "username": current_user.username,
        "message": "Authentication successful",
    }
 | 
