from fastapi import APIRouter, Depends, Request from fastapi.responses import JSONResponse from fastapi_jwt_auth import AuthJWT router = APIRouter() @router.get('/callhome') async def callhome(data: Request, Authorize: AuthJWT = Depends()): Authorize.jwt_required() json_data = await data.json() if 'uuid' not in json_data: return JSONResponse(content={"status": "error", "message": "UUID missing"})