mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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:
parent
7e6a7cb98c
commit
a188cfe677
2 changed files with 13 additions and 0 deletions
|
@ -159,5 +159,9 @@ module.exports = {
|
|||
|
||||
get slack() {
|
||||
return require('./slack');
|
||||
},
|
||||
|
||||
get session() {
|
||||
return require('./session');
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue