0
Fork 0
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:
Hannah Wolfe 2022-03-17 16:05:27 +00:00
parent 3a1185f2a1
commit 2d7117bddd
2 changed files with 13 additions and 0 deletions

View file

@ -155,5 +155,9 @@ module.exports = {
get custom_theme_settings() {
return require('./custom-theme-settings');
},
get slack() {
return require('./slack');
}
};

View 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;
}
};