Ghost/core/server/lib/url-utils.js
Kevin Ansfield 1ffdef98c3 Moved lib/thing/index.js files to lib/thing.js
no issue

- cleans up directory structure and increases naming consistency
2020-04-09 10:06:20 +01:00

19 lines
533 B
JavaScript

const UrlUtils = require('@tryghost/url-utils');
const config = require('../config');
const mobiledoc = require('./mobiledoc');
const urlUtils = new UrlUtils({
url: config.get('url'),
adminUrl: config.get('admin:url'),
apiVersions: config.get('api:versions'),
defaultApiVersion: 'v3',
slugs: config.get('slugs').protected,
redirectCacheMaxAge: config.get('caching:301:maxAge'),
baseApiPath: '/ghost/api',
get cardTransformers() {
return mobiledoc.cards;
}
});
module.exports = urlUtils;