dummy / main.py
gtlYashParmar's picture
Add testing files
11efcc9
raw
history blame contribute delete
282 Bytes
from fastapi import FastAPI
import uvicorn
app = FastAPI()
@app.get("/")
def index():
return {"message": "Welcome to the index page!"}
@app.get("/hello")
def hello():
return {"message": "Hello, testing!"}
if __name__=='__main__':
uvicorn.run('main:app', reload=True)