mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-15 02:44:24 +08:00
25 lines
507 B
Python
25 lines
507 B
Python
from fastapi import FastAPI, APIRouter
|
|
from .common import *
|
|
|
|
device_info_router = APIRouter(prefix="/api/device-info")
|
|
bot_info_router = APIRouter(prefix="/api/bot-info")
|
|
|
|
|
|
@device_info_router.get("/")
|
|
async def device_info():
|
|
print("Hello Device Info")
|
|
return {
|
|
"message": "Hello Device Info"
|
|
}
|
|
|
|
|
|
@bot_info_router.get("/")
|
|
async def bot_info():
|
|
return {
|
|
"message": "Hello Bot Info"
|
|
}
|
|
|
|
|
|
app.include_router(device_info_router)
|
|
app.include_router(bot_info_router)
|