diff --git a/src/app/__pycache__/main.cpython-311.pyc b/src/app/__pycache__/main.cpython-311.pyc index 17c9dec..caf7a40 100644 Binary files a/src/app/__pycache__/main.cpython-311.pyc and b/src/app/__pycache__/main.cpython-311.pyc differ diff --git a/src/app/main.py b/src/app/main.py index 4fab353..c905f8f 100644 --- a/src/app/main.py +++ b/src/app/main.py @@ -2,6 +2,12 @@ from fastapi import FastAPI app = FastAPI() -app.get("/") -async def root(): - return {"massege": "Hello world"} \ No newline at end of file + +@app.get("/") +def read_root(): + return {"Hello": "World"} + + +@app.get("/items/{item_id}") +def read_item(item_id: int, q: str | None = None): + return {"item_id": item_id, "q": q} \ No newline at end of file