From 833df49de7c465ddf86def284fe2b0f8bdbd3650 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 21:40:12 +0000 Subject: [PATCH] Update code in endpoints/legacy.get.py --- endpoints/legacy.get.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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