mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Bumped default API for url utils to v3
This commit is contained in:
parent
f371ccd9e5
commit
8e54cfd31f
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ const urlUtils = new UrlUtils({
|
|||
url: config.get('url'),
|
||||
adminUrl: config.get('admin:url'),
|
||||
apiVersions: config.get('api:versions'),
|
||||
defaultApiVersion: 'v2',
|
||||
defaultApiVersion: 'v3',
|
||||
slugs: config.get('slugs').protected,
|
||||
redirectCacheMaxAge: config.get('caching:301:maxAge'),
|
||||
baseApiPath: '/ghost/api'
|
||||
|
|
|
@ -11,7 +11,7 @@ const getInstance = (options) => {
|
|||
url: options.url,
|
||||
adminUrl: options.adminUrl,
|
||||
apiVersions: options.apiVersions,
|
||||
defaultApiVersion: 'v2',
|
||||
defaultApiVersion: 'v3',
|
||||
slugs: options.slugs,
|
||||
redirectCacheMaxAge: options.redirectCacheMaxAge,
|
||||
baseApiPath: '/ghost/api'
|
||||
|
@ -44,7 +44,7 @@ const stubUrlUtilsFromConfig = () => {
|
|||
url: config.get('url'),
|
||||
adminUrl: config.get('admin:url'),
|
||||
apiVersions: config.get('api:versions'),
|
||||
defaultApiVersion: 'v2',
|
||||
defaultApiVersion: 'v3',
|
||||
slugs: config.get('slugs').protected,
|
||||
redirectCacheMaxAge: config.get('caching:301:maxAge'),
|
||||
baseApiPath: '/ghost/api'
|
||||
|
|
Loading…
Add table
Reference in a new issue