Something went wrong. Try again.
Reference implementation for the Phoenix Architecture. Work in progress. aicoding.leaflet.pub
Something went wrong. Try again.
12345678910111213141516171819202122232425262728from fastapi import FastAPIfrom fastapi.responses import JSONResponsefrom src.db import run_migrations
# Shared aggregate artifacts (register migrations on import)import src.generated._migrations # noqa: F401
# Generated route modulesfrom src.generated.board_ui.board_ui import router as board_ui_routerfrom src.generated.issue.issue import router as issue_routerfrom src.generated.sprint.sprint import router as sprint_routerfrom src.generated.sprint_rollup.sprint_rollup import router as sprint_rollup_router
app = FastAPI(title="trail-py")
@app.get("/health")def health(): return {"status": "ok"}
# Mount routesapp.include_router(board_ui_router, prefix="")app.include_router(issue_router, prefix="/issue")app.include_router(sprint_router, prefix="/sprint")app.include_router(sprint_rollup_router, prefix="/sprint-rollup")
# Create tables from the registered migrations.run_migrations()