Files
aimag-linux/tutorials/pythonvirt/fastapi-app.py
T

9 lines
136 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root() -> dict[str, str]:
return {"message": "Hello, world!"}