From 48c1e2db478cba20b4ea284ddab55e02269f1460 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 21 Mar 2025 18:47:08 +0000 Subject: [PATCH] Update code in endpoints/button.get.py --- endpoints/button.get.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/endpoints/button.get.py b/endpoints/button.get.py index e69de29..27971da 100644 --- a/endpoints/button.get.py +++ b/endpoints/button.get.py @@ -0,0 +1,23 @@ +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 + } + } \ No newline at end of file