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
Hannah Wolfe 70d15e077b
Refactored mapper into individual files (#14328)
refs: https://github.com/TryGhost/Toolbox/issues/245

- Ghost's API framework has a mixed up concept of what a serializer is. Mappers are true serializers! What we call serializers are little more than a small formatting step.
- This PR splits mappers into individual files and uses the endpoint's docname as the mapper name. This will help us to automate the calling of a mapper for an endpoint later.
- This is one tiny step in reworking the framework to need less code to make it work, and to have clearer concepts for how to do things.
2022-03-16 12:44:11 +00:00
..
serializers Refactored mapper into individual files (#14328) 2022-03-16 12:44:11 +00:00
validators Added /tiers API to Admin API (#14200) 2022-02-23 17:00:18 +02:00
index.js
permissions.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00