Update code in endpoints/legacy.get.py
This commit is contained in:
parent
65d8d2eb23
commit
833df49de7
@ -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
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user