Hotfix: nytimes route#1900
Merged
DIYgod merged 1 commit intoDIYgod:masterfrom Apr 10, 2019
xyqfer:hotfix-nytimes-route
Merged
Conversation
Collaborator
|
这么偷懒的吗凉凉 |
DIYgod
approved these changes
Apr 10, 2019
Owner
|
Merged, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
由于先前的路由的注册顺序是先
/nytimes/:lang?后/nytimes/morning_post,且lang参数为可选。当访问/nytimes/morning_post时实际上是走到了第一个路由也就是/nytimes/:lang?里(这种情况下第二个路由其实并没有起作用),导致输出内容不符合预期因此调换两个路由的注册顺序可以解决这个问题
Closes #1886