Initial commit
This commit is contained in:
commit
eba9be67fc
21 changed files with 40258 additions and 0 deletions
13
main.py
Normal file
13
main.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"message": "Hello World"}
|
||||
|
||||
|
||||
@app.get("/hello/{name}")
|
||||
async def say_hello(name: str):
|
||||
return {"message": f"Hello {name}"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue