🔧 FIX: routes.router in main.py eingebunden für /api/repos Endpoint
docker-build-and-push / build (push) Successful in 17s

This commit is contained in:
KI-Sparringpartner
2026-08-03 14:28:37 +02:00
parent 115bd98976
commit c6e929bcb4
+5
View File
@@ -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: