Ghost/ghost/admin/routes/settings/general.js
Jason Williams 18a433debd Convert general settings page to ember data
Issue #2846
-Implement custom RESTAdapter and serializer for settings data.
-Convert theme selector to Ember.Select.
-Finish upload modal and wire into settings page.
2014-06-20 04:38:41 +00:00

12 lines
341 B
JavaScript

import AuthenticatedRoute from 'ghost/routes/authenticated';
var SettingsGeneralRoute = AuthenticatedRoute.extend({
model: function () {
return this.store.find('setting', { type: 'blog,theme' }).then(function (records) {
return records.get('firstObject');
});
}
});
export default SettingsGeneralRoute;