0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

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
This commit is contained in:
Rishabh 2022-05-12 21:28:11 +05:30
parent 7e383a97f6
commit eff1abc948

View file

@ -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',