fix: dashboard endpoint and SSH key Fernet key generation

- Create missing /dashboard/summary endpoint that frontend expects
- Fix SSH key Fernet key generation to use proper base64 encoding
  (was using raw session secret slice which failed validation)
This commit is contained in:
Fusion
2026-05-19 11:38:25 +02:00
parent 0fcfc745ff
commit f8700fd7ed
3 changed files with 63 additions and 2 deletions
+2
View File
@@ -7,6 +7,7 @@ from fastapi.staticfiles import StaticFiles
from sqlalchemy import select, text
from src.api.auth import router as auth_router
from src.api.dashboard import router as dashboard_router
from src.api.git_repositories import router as git_repositories_router
from src.api.projects import router as projects_router
from src.api.ssh_keys import router as ssh_keys_router
@@ -156,6 +157,7 @@ async def health_check():
return {"status": "unhealthy", "database": "disconnected", "error": str(exc)}
app.include_router(auth_router)
app.include_router(dashboard_router)
app.include_router(projects_router)
app.include_router(users_router)
app.include_router(ssh_keys_router)