diff --git a/ghost/admin/app/components/modals/edit-newsletter/verify-newsletter-email.js b/ghost/admin/app/components/modals/edit-newsletter/verify-newsletter-email.js index b06c627028..072cbbe565 100644 --- a/ghost/admin/app/components/modals/edit-newsletter/verify-newsletter-email.js +++ b/ghost/admin/app/components/modals/edit-newsletter/verify-newsletter-email.js @@ -28,7 +28,7 @@ export default class VerifyNewsletterEmail extends Component { @task *verifyEmailTask(token) { try { - const url = this.ghostPaths.url.api('newsletters', 'verify-email'); + const url = this.ghostPaths.url.api('newsletters', 'verifications'); const response = yield this.ajax.put(url, {data: {token}}); diff --git a/ghost/admin/mirage/config/newsletters.js b/ghost/admin/mirage/config/newsletters.js index add2231310..ee0de7c831 100644 --- a/ghost/admin/mirage/config/newsletters.js +++ b/ghost/admin/mirage/config/newsletters.js @@ -64,7 +64,7 @@ export default function mockNewsletters(server) { }); // verify email update - server.put('/newsletters/verify-email/', function ({newsletters}, request) { + server.put('/newsletters/verifications/', function ({newsletters}, request) { const requestBody = JSON.parse(request.requestBody); const tokenData = JSON.parse(atob(requestBody.token));