From c6e929bcb44c882d025f649b2bc6386635d34857 Mon Sep 17 00:00:00 2001 From: KI-Sparringpartner Date: Mon, 3 Aug 2026 14:28:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20FIX:=20routes.router=20in=20main?= =?UTF-8?q?.py=20eingebunden=20f=C3=BCr=20/api/repos=20Endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 5 +++++ 1 file changed, 5 insertions(+) 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: