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

What does this route do #14

Open
davisford opened this issue Oct 22, 2014 · 0 comments
Open

What does this route do #14

davisford opened this issue Oct 22, 2014 · 0 comments

Comments

@davisford
Copy link

this line

  app.route('/:url(api|auth|components|app|bower_components|assets)/*')
   .get(errors[404]);

...looking for a quick explanation. I understand it is meant to redirect to 404 if the url doesn't match some specific paths, but the syntax is confusing.

Particularly '/:url( ... )/* -- what is :url( )? It does not seem to be part of express, nor any standard regex syntax. I get that in the parens it is using the logical or |, but I still don't get :url, is that actually embedded in the path?

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

No branches or pull requests

1 participant