lundi 18 avril 2016

Ember.js - Can the root url link to two routes one for authenticated users and one for guests?

Is it possible for the root path, example.com, to display a landing page(application/index) for not logged in users but a profile page (users/show) for users who are logged in?

Guest user -> example.com -> application/index

Authenticated user -> example.com -> users/show

I know that this goes against Ember's philosophy of the app state being reflected by the url, still, does anyone know if/how this situation is possible?

Cheers!




Aucun commentaire:

Enregistrer un commentaire