Last active
August 10, 2018 01:49
-
-
Save nathan-lapinski/a9ff8ab6279b883ae690b43d69939dd4 to your computer and use it in GitHub Desktop.
url normalization example
This file contains 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
// normalize a legacy url | |
[ | |
{ path: 'legacy/user/:name', redirectTo: 'user/:name' }, | |
{ path: 'user/:name', component: UserComponent} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment