feat: SuperAdmin bootstrap, i18n sync fix and AssetAssignment ORM fix
- Fixed AttributeError in User model (added region_code, preferred_language) - Fixed InvalidRequestError in AssetAssignment (added organization relationship) - Configured STATIC_DIR for translation sync - Applied Alembic migrations for user schema updates
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
from fastapi import APIRouter
|
||||
from app.api.v1.endpoints import auth, catalog, assets, organizations, documents, services
|
||||
from app.api.v1.endpoints import auth, catalog, assets, organizations, documents, services, admin
|
||||
|
||||
api_router = APIRouter()
|
||||
|
||||
# Hitelesítés
|
||||
# Hitelesítés (Authentication)
|
||||
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
|
||||
|
||||
# Szolgáltatások és Vadászat (Ez az új rész!)
|
||||
# Szolgáltatások és Vadászat (Service Hunt & Discovery)
|
||||
api_router.include_router(services.router, prefix="/services", tags=["Service Hunt & Discovery"])
|
||||
|
||||
# Katalógus
|
||||
# Katalógus (Vehicle Catalog)
|
||||
api_router.include_router(catalog.router, prefix="/catalog", tags=["Vehicle Catalog"])
|
||||
|
||||
# Eszközök (Járművek)
|
||||
# Eszközök / Járművek (Assets)
|
||||
api_router.include_router(assets.router, prefix="/assets", tags=["Assets"])
|
||||
|
||||
# Szervezetek
|
||||
# Szervezetek (Organizations)
|
||||
api_router.include_router(organizations.router, prefix="/organizations", tags=["Organizations"])
|
||||
|
||||
# Dokumentumok
|
||||
api_router.include_router(documents.router, prefix="/documents", tags=["Documents"])
|
||||
# Dokumentumok (Documents)
|
||||
api_router.include_router(documents.router, prefix="/documents", tags=["Documents"])
|
||||
|
||||
# --- 🛡️ SENTINEL ADMIN KONTROLL PANEL ---
|
||||
# Ez a rész tette láthatóvá az Admin API-t a felületen
|
||||
api_router.include_router(admin.router, prefix="/admin", tags=["Admin Control Center (Sentinel)"])
|
||||
Reference in New Issue
Block a user