Ghost/core/server/web/site/routes.js

10 lines
384 B
JavaScript
Raw Normal View History

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