Added serializer for offers

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

- Offers didn't have a serializer because it's deliberately set at the API level
- 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 ...
This commit is contained in:
Hannah Wolfe 2022-03-20 15:17:39 +00:00
parent 3919d31838
commit e6b92aed9b
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -0,0 +1,8 @@
const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:offers');
module.exports = {
all() {
debug('all');
// Offers has frame.response already set
}
};