Refactored to better split everything up
This commit is contained in:
20
app/main.py
Normal file
20
app/main.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import asyncio
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional, Dict
|
||||
import routers.op25_controller as op25_controller
|
||||
import routers.pulse as pulse
|
||||
import routers.bot as bot
|
||||
from internal.logger import create_logger
|
||||
|
||||
# Initialize logging
|
||||
LOGGER = create_logger(__name__)
|
||||
|
||||
# Define FastAPI app
|
||||
app = FastAPI()
|
||||
|
||||
app.include_router(op25_controller.router, prefix="/op25")
|
||||
app.include_router(pulse.router, prefix="/pulse")
|
||||
app.include_router(bot.router, prefix="/bot")
|
||||
Reference in New Issue
Block a user