File size: 467 Bytes
04dc214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""User management API endpoints."""
from fastapi import APIRouter

router = APIRouter(prefix="/users", tags=["users"])


@router.get("/profile")
async def get_user_profile():
    """Get current user profile."""
    return {
        "id": "demo-user",
        "name": "Demo User",
        "role": "educator",
    }


@router.get("/health")
async def users_health():
    """Check users service health."""
    return {"status": "healthy", "service": "user-management"}