Ghost/core/server/api/canary/custom-theme-settings.js

23 lines
531 B
JavaScript
Raw Normal View History

const customThemeSettingsService = require('../../services/custom-theme-settings');
module.exports = {
docName: 'custom_theme_settings',
browse: {
permissions: true,
query() {
return customThemeSettingsService.api.listSettings();
}
},
edit: {
headers: {
cacheInvalidate: true
},
permissions: true,
query(frame) {
return customThemeSettingsService.api.updateSettings(frame.data.custom_theme_settings);
}
}
};