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

Updated route documentation. #1851

Merged
merged 2 commits into from Aug 13, 2014
Merged

Updated route documentation. #1851

merged 2 commits into from Aug 13, 2014

Conversation

@arb
Copy link
Contributor

@arb arb commented Aug 11, 2014

Fixes #1847

matching is done on the request path only (excluding the query and other URI components). Requests are matches in a deterministic order where
the order in which routes are added does not matter. The routes are sorted from the most specific to the most generic. For example, the following
path array shows the order in which an incoming request path will be matched against the routes:
matching is done on a combination of the request path and the HTTP verb. The query and other URI components are excluded from the routing logic. Requests are matched in a deterministic order where the order in which routes are added does not matter. The routes are sorted from the most specific to the most generic. The specificiy of a route is a combination of the HTTP verb and the route path. The more specific a route definition is, the higher up in the routing table it will appear. For example, the following path array shows the order in which an incoming request path will be matched against the routes:
Copy link
Member

@geek geek Aug 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo -> specificiy

I think this is too vague..
The query and other URI components are excluded from the routing logic.

What about:
The query is excluded from the routing logic.

Loading

@arb
Copy link
Contributor Author

@arb arb commented Aug 11, 2014

@wpreul done.

Loading

geek added a commit that referenced this issue Aug 13, 2014
Updated route documentation.
@geek geek merged commit aa44ea2 into hapijs:master Aug 13, 2014
1 check passed
Loading
@geek geek added this to the 6.5.0 milestone Aug 13, 2014
@geek geek self-assigned this Aug 13, 2014
@lock
Copy link

@lock lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

Loading

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants