0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary/utils/serializers
Hannah Wolfe f7ad32e76b
Removed unnecessary snippets serializer
refs: https://github.com/TryGhost/Toolbox/issues/245

- The default behaviour of a serializer is to call a mapper for each object
- Instead of all the boilerplate code we had in the snippets serializer, all we need is a single mapper function
- Added tests for the mapper function as well
2022-03-29 15:51:45 +01:00
..
input Removed archived tiers from content api (#14329) 2022-03-16 22:02:42 +05:30
output Removed unnecessary snippets serializer 2022-03-29 15:51:45 +01:00
index.js