mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-09-11 22:30:41 +03:00
17 lines
469 B
Python
17 lines
469 B
Python
from api.bot.controllers import router as bot_router
|
|
from api.system.controllers import router as system_router
|
|
from fastapi import APIRouter
|
|
from fastapi.responses import ORJSONResponse
|
|
from settings.config import get_settings
|
|
|
|
settings = get_settings()
|
|
|
|
api_router = APIRouter(
|
|
prefix=settings.api_prefix,
|
|
default_response_class=ORJSONResponse,
|
|
)
|
|
|
|
|
|
api_router.include_router(system_router, tags=["system"])
|
|
api_router.include_router(bot_router, tags=["bot"])
|