Stelle den Frontend-MVP und die v0.3-API auf develop bereit, damit Dev API und PWA zusammen deployen.
Deploy Development / deploy (push) Successful in 1m19s
Test Suite / pytest-backend (push) Successful in 31s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-checks (push) Successful in 28s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-04 13:04:59 +02:00
1 parent 827e6a2a11
commit b276758ee1
152 files changed
+25846 -34

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
from uuid import UUID
from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from app.api.schemas import EvaluateIn
from app.persistence.db import get_session
from app.services.evaluation_service import evaluate_and_store, load_evaluation
router = APIRouter(prefix="/api/v1")
@router.post("/evaluate/{variant_id}", status_code=201)
def evaluate(variant_id: UUID, payload: EvaluateIn):
return evaluate_and_store(variant_id=variant_id, payload=payload.model_dump())
@router.get("/evaluations/{evaluation_id}")
def get_evaluation(evaluation_id: UUID, session: Session = Depends(get_session)):
return load_evaluation(session, evaluation_id)