Skip to content

Commit

Permalink
Make index function asynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Oct 8, 2024
1 parent 4ce75e8 commit 0964e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def lifespan_event(app: FastAPI):


@app.get('/')
def index():
async def index():
return {'message': 'Hello World!'}


Expand Down

0 comments on commit 0964e21

Please sign in to comment.