1.新增私聊接口2.新增.talk指令
This commit is contained in:
3
app.py
3
app.py
@@ -10,7 +10,7 @@ import asyncio
|
||||
from config import APP_CONFIG, SESSION_TIMEOUT, SetWebhookURL, GetWebhookURL
|
||||
from core.middleware import ConcurrencyLimitMiddleware
|
||||
from core.database import get_db
|
||||
from routers import callback, health
|
||||
from routers import callback, health, private
|
||||
|
||||
# 配置日志
|
||||
logging.basicConfig(
|
||||
@@ -74,6 +74,7 @@ app.add_middleware(ConcurrencyLimitMiddleware)
|
||||
# 注册路由
|
||||
app.include_router(callback.router, prefix="/api", tags=["callback"])
|
||||
app.include_router(health.router, tags=["health"])
|
||||
app.include_router(private.router, prefix="/api", tags=["private"])
|
||||
|
||||
|
||||
@app.get("/")
|
||||
|
||||
Reference in New Issue
Block a user