diff --git a/app/main.py b/app/main.py index 4e900b4..c59455d 100644 --- a/app/main.py +++ b/app/main.py @@ -19,9 +19,14 @@ def get_token(): app = FastAPI(title="Gitea Sync AI", version="1.0") +# 🎯 WICHTIG: Routen einbinden! +from . import routes +app.include_router(routes.router, prefix="/api") + # Frontend ausliefern - verwende relativen Pfad TEMPLATES_DIR = Path(__file__).parent / "templates" + @app.get("/", response_class=HTMLResponse) async def dashboard(request: Request): with open(TEMPLATES_DIR / "index.html") as f: