kuzan-3wok0a/endpoints/button.get.py
2025-03-21 18:47:08 +00:00

23 lines
535 B
Python

from fastapi import APIRouter, HTTPException
from fastapi.responses import JSONResponse
router = APIRouter()
buttons = [] # In-memory storage
@router.get("/button")
async def get_button():
"""Demo button endpoint"""
return {
"message": "Button retrieved successfully",
"button": {
"id": "btn_123",
"label": "Click Me",
"color": "blue",
"enabled": True
},
"features": {
"clickable": True,
"visible": True
}
}