mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
13 lines
428 B
JavaScript
13 lines
428 B
JavaScript
|
import ajax from 'ghost/utils/ajax';
|
||
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
||
|
import SettingsModel from 'ghost/models/settings';
|
||
|
|
||
|
var SettingsGeneralRoute = AuthenticatedRoute.extend({
|
||
|
model: function () {
|
||
|
return ajax('/ghost/api/v0.1/settings/?type=blog,theme,app').then(function (resp) {
|
||
|
return SettingsModel.create(resp);
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default SettingsGeneralRoute;
|