Added serializer for session.all

refs: https://github.com/TryGhost/Toolbox/issues/245

- Session 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 were added to cover this endpoint in 2cf7e00493
This commit is contained in:
Hannah Wolfe 2022-03-18 14:48:27 +00:00
parent 7e6a7cb98c
commit a188cfe677
2 changed files with 13 additions and 0 deletions

View File

@ -159,5 +159,9 @@ module.exports = {
get slack() {
return require('./slack');
},
get session() {
return require('./session');
}
};

View File

@ -0,0 +1,9 @@
const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:session');
module.exports = {
all(data, apiConfig, frame) {
debug('all');
frame.response = data;
}
};