mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
2947db0e6b
refs https://github.com/TryGhost/Team/issues/1070 - bumped `@tryghost/custom-theme-settings-service` to get access to `.listSettings()` method - added GET `/api/canary/admin/theme_settings/` route behind `'customThemeSettings'` feature flag that uses the custom theme settings service to return settings resources that are a combination of the theme-provided definition and the saved value
13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
const customThemeSettingsService = require('../../services/custom-theme-settings');
|
|
|
|
module.exports = {
|
|
docName: 'custom_theme_settings',
|
|
|
|
browse: {
|
|
permissions: true,
|
|
query() {
|
|
return customThemeSettingsService.listSettings();
|
|
}
|
|
}
|
|
};
|