From eff1abc948e50e8661b30ee6ffbbe9e7f429a2fd Mon Sep 17 00:00:00 2001 From: Rishabh Date: Thu, 12 May 2022 21:28:11 +0530 Subject: [PATCH] Updated offer detail endpoint to use content api refs https://github.com/TryGhost/Team/issues/1599 - offer details are now available directly on content api --- ghost/portal/src/utils/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/utils/api.js b/ghost/portal/src/utils/api.js index c5870d44b6..14c11afed7 100644 --- a/ghost/portal/src/utils/api.js +++ b/ghost/portal/src/utils/api.js @@ -133,7 +133,7 @@ function setupGhostApi({siteUrl = window.location.origin, apiUrl, apiKey}) { }, offer({offerId}) { - const url = endpointFor({type: 'members', resource: 'offers'}) + offerId + '/'; + const url = contentEndpointFor({resource: `offers/${offerId}`}); return makeRequest({ url, method: 'GET',