Spaces:
Sleeping
Sleeping
File size: 354 Bytes
dcb6c5f 47b5f0c dcb6c5f 47b5f0c dcb6c5f 47b5f0c |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from app.db_local_storage.in_memory_db import query_response_storage
from fastapi import APIRouter
from fastapi.responses import JSONResponse
router = APIRouter()
@router.delete("/clear_variables/")
async def clear_variables():
query_response_storage.clear()
return JSONResponse(status_code=200, content={"message": "All variables cleared"})
|