mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-03 03:28:39 -05:00
16 lines
223 B
Python
16 lines
223 B
Python
import uvicorn
|
|
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/")
|
|
def root():
|
|
a = "a"
|
|
b = "b" + a
|
|
return {"hello world": b}
|
|
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run(app, host="0.0.0.0", port=8000)
|