🔧 FIX: routes.router in main.py eingebunden für /api/repos Endpoint
docker-build-and-push / build (push) Successful in 17s
docker-build-and-push / build (push) Successful in 17s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user