Closed rootedsoftware closed 8 years ago
Here is an example of what I mean by my question.
authenticatedRoutes.route( '/people/:_id', { name: 'people', action() { BlazeLayout.render( 'main', { yield: 'People' } ); } });
Is there a way to make both of these URLs work with one route?
https://myapp.mydomain.com/people https://myapp.mydomain.com/people/PKsads3343ss
Check this to learn more about path definition syntax. See: https://github.com/pillarjs/path-to-regexp#optional
path-to-regexp is the project we use internally for path definitions.
path-to-regexp
Here is an example of what I mean by my question.
Is there a way to make both of these URLs work with one route?
https://myapp.mydomain.com/people https://myapp.mydomain.com/people/PKsads3343ss