mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 13:28:49 +08:00
15 lines
204 B
Python
15 lines
204 B
Python
|
|
||
|
from fastapi import FastAPI
|
||
|
|
||
|
app = FastAPI()
|
||
|
|
||
|
|
||
|
@app.get("/")
|
||
|
def read_root():
|
||
|
return "use /query/{query}"
|
||
|
|
||
|
|
||
|
@app.get("/amis-doc-query/{query}")
|
||
|
def read_item(query: str):
|
||
|
return {"item_id": "d"}
|