Skip to content

Commit c038887

Browse files
committed
update api/index.py
1 parent 6e55981 commit c038887

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

api/index.py

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
from fastapi import FastAPI
2-
3-
from api.dtos.ISayHelloDto import ISayHelloDto
4-
5-
app = FastAPI()
6-
7-
@app.get("/")
8-
async def root():
9-
return {"message": "Hello World"}
10-
11-
12-
@app.get("/hello/{name}")
13-
async def say_hello(name: str):
14-
return {"message": f"Hello {name}"}
15-
16-
@app.post("/hello")
17-
async def hello_message(dto: ISayHelloDto):
18-
return {"message": f"Hello {dto.message}"}
1+
from src.index import app

0 commit comments

Comments
 (0)