Ghost/core/frontend/web/routes.js

13 lines
475 B
JavaScript
Raw Normal View History

const debug = require('@tryghost/debug')('routing');
const routing = require('../services/routing');
const urlService = require('../../server/services/url');
const routeSettings = require('../../server/services/route-settings');
module.exports = function siteRoutes(options = {}) {
debug('site Routes', options);
options.routerSettings = routeSettings.loadRouteSettingsSync();
options.urlService = urlService;
return routing.routerManager.init(options);
};