20 lines
644 B
Python
20 lines
644 B
Python
from fastapi import FastAPI
|
|
import routers.op25_controller as op25_controller
|
|
import routers.pulse as pulse
|
|
import routers.bot as bot
|
|
from internal.logger import create_logger
|
|
from internal.bot_manager import DiscordBotManager
|
|
|
|
# Initialize logging
|
|
LOGGER = create_logger(__name__)
|
|
|
|
# Define FastAPI app
|
|
app = FastAPI()
|
|
|
|
# Initialize Discord Bot Manager
|
|
bot_manager_instance = DiscordBotManager()
|
|
|
|
app.include_router(op25_controller.create_op25_router(bot_manager=bot_manager_instance), prefix="/op25")
|
|
app.include_router(pulse.router, prefix="/pulse")
|
|
app.include_router(bot.create_bot_router(bot_manager=bot_manager_instance), prefix="/bot")
|