Skip to content

Commit

Permalink
Changed example comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tabotkevin committed Dec 13, 2023
1 parent 0a45d9d commit 1c8ec83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/endpoint_request_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@api.route("/{greeting}")
async def greet(req, resp, *, greeting): # all request methods.
async def greet(req, resp, *, greeting): # any request method.
resp.text = f"{greeting}, world!"


Expand All @@ -24,7 +24,7 @@ def on_post(self, req, resp, *, greeting):
resp.text = f"POST class - {greeting}, world!"
resp.headers.update({"X-Life": "42"})

def on_request(self, req, resp, *, greeting): # all request methods.
def on_request(self, req, resp, *, greeting): # any request method.
resp.text = f"any class - {greeting}, world!"
resp.headers.update({"X-Life": "42"})

Expand Down

0 comments on commit 1c8ec83

Please sign in to comment.