Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def func1():
return jsonify({"Datetime": datetime.now(), "Succeed": x})


@app.route("/users/<string:doc_id>", methods=["GET", "PUT", "DELETE"]) # type: ignore
# type: ignore
@app.route("/users/<string:doc_id>", methods=["GET", "PUT", "DELETE"])
def func2(doc_id: str):
"""Function to handle GET, PUT and DELETE requests on /users/<string:doc_id> route"""
if request.method == "GET":
Expand Down