I have the following routes that I'd like to match
/biblioteca
/biblioteca/whatever
So far now I made two routes, like this:
$routeProvider.when('/biblioteca', { ...
$routeProvider.when('/biblioteca/:path*', { ...
Is there some way to capture both of them with a single route, stating that the :path* part is optional? perhaps something like...
$routeProvider.when('/biblioteca/:?path*', { ...
what would be the correct way to handle such a case?