Initial commit: svg backend

This commit is contained in:
adminko
2026-03-19 13:39:32 +03:00
commit 85fb2f4bb9
78 changed files with 6161 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import json
from pathlib import Path
from fastapi import HTTPException, status
def read_normalized_payload_from_path(normalized_storage_path: str) -> dict:
path = Path(normalized_storage_path)
if not path.exists() or not path.is_file():
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail="Normalized snapshot file not found",
)
return json.loads(path.read_text(encoding="utf-8"))