File size: 198 Bytes
d78c848
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from fastapi import FastAPI

# Create an instance of the FastAPI class
app = FastAPI()

# Define a route for the root endpoint
@app.get("/")
def read_root():
    return {"message": "Hello, World!"}