Skip to content

Commit

Permalink
Update flask and add greet_user api
Browse files Browse the repository at this point in the history
  • Loading branch information
look4regev committed Nov 19, 2024
1 parent 84b98b6 commit 60a3bb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python 3.7.4
python 3.12.7
6 changes: 6 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ def health():
return {"is_healthy": True}


@app.route("/user/<user_id>")
def greet_user(user_id):
return f"hello {user_id}"


if __name__ == "__main__":
app.run(host='0.0.0.0', port=8080)
print("Service is shutting down..")

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flask==1.1.1
flask==3.1.0
pip>=19.2.3

0 comments on commit 60a3bb9

Please sign in to comment.