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

docs(examples): add an example of handler based routing #3821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

randomairborne
Copy link

Adds an example showing more complex routing functionality than that in web_api. Builds off web_api with a more complex, reusable router framework.
This is a pretty complex example, it has more lines of code than any other example except single_thread. It may need to be pared down- do not hesitate to let me know if there's anything that's overcomplicated or needs to be changed.

Adds an example showing more complex routing functionality than that in web_api.
Builds off web_api with a more complex, reusable router framework.
@randomairborne
Copy link
Author

I am curious- I noticed that the other examples tend to contain fairly few comments. Is this intentional?

@dswij
Copy link
Member

dswij commented Jan 4, 2025

I am curious- I noticed that the other examples tend to contain fairly few comments. Is this intentional?

I won't say it's intentional. More likely, the author thought the parts are easy to understand so a comment is unnecessary.

If the comment can explain what's happening, it's good to have. But if it's more of a guide, then we can put it in the website instead.

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 this pull request may close these issues.

2 participants