mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
1453a1d04e
Issue #2846 -Implement custom RESTAdapter and serializer for settings data. -Convert theme selector to Ember.Select. -Finish upload modal and wire into settings page.
12 lines
341 B
JavaScript
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;
|