d4f / backbone-highway

Routing Backbone with style \o/
MIT License
19 stars 5 forks source link

Normalize API #6

Closed ghost closed 8 years ago

ghost commented 9 years ago

Some functionalities are in conflict, for example, the ability to declare multiple controllers for a given path is the same as declaring aliases between routes. The aliasing structure is much more flexible tldhan the multiple controllers.

The authenticated option should probably be declared somewhere else. The fact that the user is logged in or not should be abstracted from the route declaration itself. As it has been pointed out to me, it would be more obvious to pass this information to the route action via the action context which is not really implemented yet.