Ghost/core/server/services/url/index.js
kirrg001 7d99ee8466 Small UrlService optimisations
no issue

- rename the config option to disable preloading the urls
- always expose the urlservice as singleton
- do the initialisation of the service inside the constructor
2017-12-11 20:05:33 +01:00

11 lines
241 B
JavaScript

'use strict';
const config = require('../../config'),
UrlService = require('./UrlService'),
urlService = new UrlService({
disableUrlPreload: config.get('disableUrlPreload')
});
// Singleton
module.exports = urlService;