Migration cleanup: SLM dashboard restored, db migration

This commit is contained in:
serversdwn
2026-01-09 19:14:09 +00:00
parent ff438c1197
commit 5b907c0cd7
5 changed files with 365 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ from app.seismo import routes as seismo_legacy_routes
# Import feature module routers (SLM)
from app.slm.routers import router as slm_router
from app.slm.dashboard import router as slm_dashboard_router
# Import API aggregation layer (placeholder for now)
from app.api import dashboard as api_dashboard
@@ -48,6 +49,9 @@ from app.api import roster as api_roster
from app.seismo.database import engine as seismo_engine, Base as SeismoBase
SeismoBase.metadata.create_all(bind=seismo_engine)
from app.slm.database import engine as slm_engine, Base as SlmBase
SlmBase.metadata.create_all(bind=slm_engine)
# Initialize FastAPI app
app = FastAPI(
title=APP_NAME,
@@ -104,6 +108,7 @@ app.include_router(seismo_legacy_routes.router)
# SLM Feature Module APIs
app.include_router(slm_router)
app.include_router(slm_dashboard_router)
# API Aggregation Layer (future cross-feature endpoints)
# app.include_router(api_dashboard.router) # TODO: Implement aggregation