18 lines
393 B
Python
18 lines
393 B
Python
"""
|
|
Package `routers`: Each module contains the path operations for their prefixes.
|
|
|
|
This file: Main API router definition.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from ..config import SETTINGS
|
|
from . import image, text
|
|
|
|
main_router = APIRouter(prefix=f"/{SETTINGS.api_v1_prefix}")
|
|
main_router.include_router(text.router)
|
|
main_router.include_router(image.router)
|
|
|
|
__all__ = [
|
|
"main_router",
|
|
]
|