Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error in Examples section in Documentation #314

Closed
carlosm27 opened this issue Nov 18, 2022 · 3 comments · Fixed by #315
Closed

[BUG] Error in Examples section in Documentation #314

carlosm27 opened this issue Nov 18, 2022 · 3 comments · Fixed by #315

Comments

@carlosm27
Copy link
Contributor

Description

There is an error in the Examples section. The code snippet in "Using Middleware" is the same of "Serving simple HTML Files"

Expected Behavior

The code snippet should be :

@app.before_request("/")
async def hello_before_request(request):
    print(request)


@app.after_request("/")
def hello_after_request(request):
    print(request)

Screenshots

Environment:

  • Host OS:
  • Browser:

[Optional] Additional Context


@sansyrox
Copy link
Member

Thank you @carlosm27 . I am on it 😄

@sansyrox
Copy link
Member

sansyrox commented Nov 18, 2022 via email

@carlosm27
Copy link
Contributor Author

Oh no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants