Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Spotika authored Sep 27, 2023
1 parent cd8915f commit da6dce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
"""test"""
from fastapi import FastAPI

app = FastAPI()


@app.get("/")
async def root():
"""test"""
return {"message": "Hello World"}


@app.get("/hello/{name}")
async def say_hello(name: str):
"""test"""
return {"message": f"Hello {name}"}

0 comments on commit da6dce0

Please sign in to comment.