diff --git a/endpoints/legacy.get.py b/endpoints/legacy.get.py index e69de29..1d007ba 100644 --- a/endpoints/legacy.get.py +++ b/endpoints/legacy.get.py @@ -0,0 +1,20 @@ +from fastapi import APIRouter, HTTPException + +users = [] # In-memory storage + +router = APIRouter() + +@router.get("/legacy") +async def get_legacy_users(): + """Get all legacy users endpoint""" + if not users: + raise HTTPException(status_code=404, detail="No legacy users found") + + return { + "message": "Legacy users retrieved", + "users": users, + "features": { + "rate_limit": 100, + "expires_in": 3600 + } + } \ No newline at end of file