osnova-api-alert/routers/__init__.py

25 lines
476 B
Python
Raw Normal View History

2024-10-08 11:26:04 +00:00
from fastapi import APIRouter
from .swagger import router as swagger_router
2024-10-09 08:28:57 +00:00
from .ping import router as ping_router
2024-10-08 14:33:15 +00:00
from .tg_send import router as tg_send_router
2024-10-08 11:26:04 +00:00
from config import conf
router = APIRouter()
router.include_router(
swagger_router,
prefix=conf.prefix.swagger,
)
2024-10-09 08:28:57 +00:00
router.include_router(
ping_router,
prefix=conf.prefix.ping,
tags=["Ping"],
)
2024-10-08 14:33:15 +00:00
router.include_router(
tg_send_router,
prefix=conf.prefix.tg_v1,
tags=["Telegram"],
)