/ sussro_services / api / v1 / __init__.py
__init__.py
 1  """API v1 package.
 2  
 3  This module contains all API v1 endpoints and routers.
 4  """
 5  from fastapi import APIRouter
 6  
 7  from ...core.config import settings
 8  
 9  # Create API v1 router
10  api_router = APIRouter()
11  
12  # Import and include all API v1 endpoints
13  from .endpoints import auth, users
14  
15  # Include API v1 endpoints
16  api_router.include_router(
17      auth.router,
18      prefix="/auth",
19      tags=["authentication"],
20  )
21  
22  api_router.include_router(
23      users.router,
24      prefix="/users",
25      tags=["users"],
26  )
27  
28  __all__ = ["api_router"]