diff --git a/backend/app/main.py b/backend/app/main.py index 560daa4..f879f2b 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -109,14 +109,13 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]: ) # --- Routes --- -from app.api.routes import generate, health # noqa: E402 +from app.api.routes import export, generate, health # noqa: E402 app.include_router(generate.router, prefix="/api", tags=["generation"]) app.include_router(health.router, tags=["health"]) # Optional: register export and styles routes when ready -# from app.api.routes import export, styles -# app.include_router(export.router, prefix="/api", tags=["export"]) +app.include_router(export.router, prefix="/api", tags=["export"]) # app.include_router(styles.router, prefix="/api", tags=["styles"]) diff --git a/backend/tests/test_api.py b/backend/tests/test_api.py index 150e0a9..2f6cad2 100644 --- a/backend/tests/test_api.py +++ b/backend/tests/test_api.py @@ -63,5 +63,5 @@ class TestExportEndpoint: def test_export_requires_job_id(self) -> None: """Should return 422 if job_id is missing.""" - # TODO: Implement - pass + response = client.post("/api/export", json={}) + assert response.status_code == 422