mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
18a433debd
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;
|