Update typing_route.py
This commit is contained in:
parent
d399194b6c
commit
a386300f38
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def hello_bytes() -> bytes:
|
|||
def hello_json() -> Response:
|
||||
return jsonify({"response": "Hello, World!"})
|
||||
|
||||
|
||||
#Returns hello with the current status code when "/status" is accessed or "/status" is accessed with the parameter "code"
|
||||
@app.route("/status")
|
||||
@app.route("/status/<int:code>")
|
||||
def tuple_status(code: int = 200) -> tuple[str, int]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue