Files
fastapi/docs/src/debugging/tutorial001.py
Sebastián Ramírez 01d6aa3dd1 📝 Add docs for debugging
2019-03-02 17:40:01 +04:00

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)