You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
# 定义获取所有 pushmessage 的路由
|
|
@router.get("/pushmessage/")
|
|
async def push_message():
|
|
"""
|
|
推送消息到elink
|
|
"""
|
|
return [{"item_id": "Foo", "name": "Foo Bar"}, {"item_id": "Baz", "name": "Baz Qux"}] |