mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
17 lines
500 B
JavaScript
17 lines
500 B
JavaScript
const UrlUtils = require('@tryghost/url-utils');
|
|
const config = require('../../config');
|
|
const cards = require('../mobiledoc/cards');
|
|
|
|
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',
|
|
cardTransformers: cards
|
|
});
|
|
|
|
module.exports = urlUtils;
|