0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/api/canary
Nazar Gargol e9e3f58792 Refactored member controller to use model layer
refs https://github.com/TryGhost/Members/pull/105

- As members module has become a core part it makes sense to follow the same principles as in all other controllers and use the model directly instead of calling external services.
- Bumped @tryghost/members-api to 0.11.1 . New stripe-specific methods used in controllers are available starting with this version
- Exposing these new methods is a little hacky because there are no relationships setup on members_* tables. Left notes for future improvements once relations are introduced.
- We don't allow for chaging member's emails at the moment. For this reason had to modify JSON schema a little. It doesn't support OO inheritence: "This shortcoming is perhaps one of the biggest surprises of the combining operations in JSON schema: it does not behave like inheritance in an object-oriented language. " (ref. https://json-schema.org/understanding-json-schema/reference/combining.html#allof)
2020-01-15 17:52:47 +07:00
..
utils Refactored member controller to use model layer 2020-01-15 17:52:47 +07:00
actions.js
authentication.js
authors-public.js
config.js
db.js
email-preview.js Refactored email handling to be consistent for test and newsletter emails 2019-11-26 21:41:01 +05:30
email.js Moved toJSON calls to serializer 2019-11-25 12:04:58 +07:00
images.js
index.js Implemented GET /emails/:id endpoint 2019-11-06 15:56:56 +07:00
integrations.js
invites.js
mail.js
members.js Refactored member controller to use model layer 2020-01-15 17:52:47 +07:00
notifications.js
oembed.js Deferred loading metascraper (#11337) 2019-11-06 08:31:11 +07:00
pages-public.js
pages.js Allowed pages to accept HTML as a source (#11422) 2020-01-08 17:44:34 +01:00
posts-public.js
posts.js 🏗Added host config limits for member emails (#11439) 2019-12-17 19:24:27 +05:30
preview.js
redirects.js
roles.js
schedules.js
session.js
settings-public.js
settings.js Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
site.js
slack.js
slugs.js
tags-public.js
tags.js
themes.js
users.js
webhooks.js