mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added serializer for slack.all
refs: https://github.com/TryGhost/Toolbox/issues/245 - Slack didn't have a serializer because it's deliberately a passthrough - With the upcoming refactor we want to have all the serializers defined explicitly - This will allow us to change the default behaviour - Tests already cover this endpoint
This commit is contained in:
parent
3a1185f2a1
commit
2d7117bddd
2 changed files with 13 additions and 0 deletions
|
@ -155,5 +155,9 @@ module.exports = {
|
|||
|
||||
get custom_theme_settings() {
|
||||
return require('./custom-theme-settings');
|
||||
},
|
||||
|
||||
get slack() {
|
||||
return require('./slack');
|
||||
}
|
||||
};
|
||||
|
|
9
core/server/api/canary/utils/serializers/output/slack.js
Normal file
9
core/server/api/canary/utils/serializers/output/slack.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:slack');
|
||||
|
||||
module.exports = {
|
||||
all(themes, apiConfig, frame) {
|
||||
debug('all');
|
||||
|
||||
frame.response = themes;
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue