mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Bumped default API version to v4 in url-utils
refs https://github.com/TryGhost/Team/issues/513 - Bumping as this is now a default API
This commit is contained in:
parent
d37a4ec97e
commit
f68cf109dd
@ -1,11 +1,13 @@
|
||||
const UrlUtils = require('@tryghost/url-utils');
|
||||
const config = require('./config');
|
||||
|
||||
const DEFAULT_GHOST_API_VERSION = 'v4';
|
||||
|
||||
const urlUtils = new UrlUtils({
|
||||
url: config.get('url'),
|
||||
adminUrl: config.get('admin:url'),
|
||||
apiVersions: config.get('api:versions'),
|
||||
defaultApiVersion: 'v3',
|
||||
defaultApiVersion: DEFAULT_GHOST_API_VERSION,
|
||||
slugs: config.get('slugs').protected,
|
||||
redirectCacheMaxAge: config.get('caching:301:maxAge'),
|
||||
baseApiPath: '/ghost/api',
|
||||
|
Loading…
Reference in New Issue
Block a user