Understanding Ember route hooks to redirect

Ember provides several hooks which can be used to redirect user to a different page what they request for.For example if a user is not logged in, you might want to prevent it from accessing the resources. Usually you want to redirect them to the login page and after...