mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Moved POST /members/api/member behind alpha flag (#20124)
ref https://linear.app/tryghost/issue/SLO-78 - the `POST /members/api/member` endpoint is solely used by the alpha feature `membersSpamPrevention` and should not be available otherwise
This commit is contained in:
parent
cc76fda3e8
commit
e996213122
@ -38,7 +38,11 @@ module.exports = function setupMembersApp() {
|
||||
// We don't want to add global bodyParser middleware as that interferes with stripe webhook requests on - `/webhooks`.
|
||||
|
||||
// Double opt-in subscription handling
|
||||
membersApp.post('/api/member', membersService.api.middleware.createMemberFromToken);
|
||||
membersApp.post(
|
||||
'/api/member',
|
||||
labs.enabledMiddleware('membersSpamPrevention'),
|
||||
membersService.api.middleware.createMemberFromToken
|
||||
);
|
||||
|
||||
// Manage newsletter subscription via unsubscribe link
|
||||
membersApp.get('/api/member/newsletters', middleware.getMemberNewsletters);
|
||||
|
Loading…
Reference in New Issue
Block a user