Skip to content

Pull route definition out of startup callback#3

Open
pcorey wants to merge 1 commit into
AdmitHub:mainfrom
pcorey:master
Open

Pull route definition out of startup callback#3
pcorey wants to merge 1 commit into
AdmitHub:mainfrom
pcorey:master

Conversation

@pcorey

@pcorey pcorey commented Apr 28, 2015

Copy link
Copy Markdown

Deferring the shared-auth-frame route declaration until after startup can cause the route to be ignored if a catch-all route is being used by the application:

Router.route("/(.*)", { ... });

You could argue that it's better to not use catch-alls, and use notFoundTemplate instead, some packages assume that all routes will be named (manuelschoebel:ms-seo), and there is no reason (that I can see) to defer the shared-auth-frame setup until after startup.

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.

1 participant