I have a url in my app.js containing routes. let's say the url is:
/api/:opt1/:opt2/:opt3/users
I want my url to work anyway, I had to ignore the optional parameters (opt1, opt2 or opt3, maybe all or several). How can i achieve this.
Is there a way that I can name $location.path('/users'), and I can also indicate which values are optional parameters?
source
share