This commit is contained in:
Team3
2026-07-26 20:53:01 +02:00
parent ebfb2fc360
commit 0115fd4ce9
13 changed files with 264 additions and 321 deletions

View File

@@ -74,8 +74,10 @@ async def feature_anlegen(name: str, body: dict):
async def feature_speichern(name: str, id: str, body: dict):
try:
return features.speichern(name, id, body.get("roh") or "")
except (FileNotFoundError, ValueError) as e:
except FileNotFoundError as e:
raise HTTPException(404, str(e))
except ValueError as e:
raise HTTPException(400, str(e))
@router.delete("/projekte/{name}/features/{id}")