Ghost/core/frontend/web/routes.js
Naz 5b2009a268 Removed unuseful comment
no issue

- The file has been moved to the frontend and we have linting rules to remind moving "server" requires
2021-11-13 01:01:28 +13:00

13 lines
475 B
JavaScript

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);
};