In your router (for example, the first two routes):
routes: {
"path/": "objectList",
"path/:id": "objectItem",
":whatever": "notFound"
}
The latter is the most general route, and it takes away everything that is not recognized by more specific routes.
source
share