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