mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
12 lines
313 B
JavaScript
12 lines
313 B
JavaScript
var AppsRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, {
|
|
beforeModel: function () {
|
|
if (!this.get('config.apps')) {
|
|
this.transitionTo('settings.general');
|
|
}
|
|
},
|
|
model: function () {
|
|
return this.store.find('app');
|
|
}
|
|
});
|
|
|
|
export default AppsRoute;
|