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:
parent
7e383a97f6
commit
eff1abc948
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue