Ghost/ghost/admin/app/routes/authenticated.js

11 lines
254 B
JavaScript
Raw Normal View History

import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
export default Route.extend({
session: service(),
beforeModel(transition) {
this.session.requireAuthentication(transition, 'signin');
}
2017-02-06 18:53:04 +03:00
});