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:
Naz 2021-03-03 17:26:55 +13:00
parent d37a4ec97e
commit f68cf109dd

View File

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