File size: 189 Bytes
e553197
 
 
 
 
 
a437192
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def greet_json():
    return {"Hello": "World Plipala!"}

@app.get("/521")
def love_json():
    return {"我爱你": "孙宁宁"}