Ghost/ghost/admin/routes/authenticated.js

11 lines
255 B
JavaScript
Raw Normal View History

var AuthenticatedRoute = Ember.Route.extend({
actions: {
error: function (error) {
if (error.jqXHR.status === 401) {
this.transitionTo('signin');
}
}
}
});
export default AuthenticatedRoute;