petter2025's picture
Add FastAPI app
2d521fd verified
raw
history blame contribute delete
192 Bytes
from fastapi import APIRouter
from app.core.storage import incident_history
router = APIRouter()
@router.get("/history")
async def get_history():
return {"incidents": incident_history}