mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
5b2009a268
no issue - The file has been moved to the frontend and we have linting rules to remind moving "server" requires
13 lines
475 B
JavaScript
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);
|
|
};
|