TIF_E41253310/Backend/app/routers/api.py

16 lines
944 B
Python

from fastapi import APIRouter
from app.routers import auth, alumni, prodi, clustering, clustering_results, keywords, dashboard, import_data
# Base API Router instance to compile sub-routers
api_router = APIRouter()
# Register sub-routers with prefixes and API tags
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
api_router.include_router(alumni.router, prefix="/alumni", tags=["Alumni"])
api_router.include_router(prodi.router, prefix="/prodi", tags=["Prodi"])
api_router.include_router(clustering.router, prefix="/clustering", tags=["Clustering ML"])
api_router.include_router(clustering_results.router, prefix="/clustering", tags=["Clustering Results"])
api_router.include_router(keywords.router, prefix="/keywords", tags=["Keywords"])
api_router.include_router(dashboard.router, prefix="/dashboard", tags=["Dashboard"])
api_router.include_router(import_data.router, prefix="/import", tags=["Import Data"])