- Implemented DTOs for KPIs, activity items, chart data points, and dashboard statistics. - Created API routes for fetching dashboard statistics, operations overview, and inventory metrics. - Developed a service layer to handle the logic for generating dashboard statistics, including invoice metrics, client/provider metrics, and recent activity. - Added frontend API client methods for fetching dashboard data. - Created TypeScript types for dashboard data structures. - Developed Svelte components for displaying recent activity, KPI cards, trend charts, and donut charts.
15 lines
692 B
Python
15 lines
692 B
Python
from .auth.routes import router as auth_router
|
|
from .licenses.routes import router as licenses_router
|
|
from .tenants.routes import router as tenants_router
|
|
from .user_tenant.routes import router as user_tenant_router
|
|
from .dashboard.routes import router as dashboard_router
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
router.include_router(auth_router)
|
|
router.include_router(tenants_router, prefix="/core", tags=["core / tenants"])
|
|
router.include_router(user_tenant_router, prefix="/core", tags=["core / user-tenants"])
|
|
router.include_router(licenses_router, prefix="/core", tags=["core / licenses"])
|
|
router.include_router(dashboard_router, prefix="/core", tags=["core / dashboard"])
|