20 lines
479 B
Python
20 lines
479 B
Python
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
|
|
}
|
|
} |