2014-03-20 21:55:32 -05:00
|
|
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
2014-06-04 23:18:23 -04:00
|
|
|
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
2014-03-20 21:55:32 -05:00
|
|
|
|
2014-06-04 23:18:23 -04:00
|
|
|
var SettingsGeneralRoute = AuthenticatedRoute.extend(loadingIndicator, {
|
2014-03-20 21:55:32 -05:00
|
|
|
model: function () {
|
2014-06-20 02:29:49 +00:00
|
|
|
return this.store.find('setting', { type: 'blog,theme' }).then(function (records) {
|
|
|
|
return records.get('firstObject');
|
2014-03-20 21:55:32 -05:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-06-20 02:29:49 +00:00
|
|
|
export default SettingsGeneralRoute;
|