mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
refs https://linear.app/tryghost/issue/CORE-104/decouple-frontend-routing-events-from-urlserver-events - A follow up rename after bootstrap module was transformed into class
11 lines
475 B
JavaScript
11 lines
475 B
JavaScript
const debug = require('@tryghost/debug')('routing');
|
|
const routing = require('../../../frontend/services/routing');
|
|
const urlService = require('../../services/url');
|
|
const routeSettings = require('../../services/route-settings');
|
|
|
|
module.exports = function siteRoutes(options = {}) {
|
|
debug('site Routes', options);
|
|
options.routerSettings = routeSettings.loadRouteSettingsSync();
|
|
options.urlService = urlService;
|
|
return routing.routerManager.init(options);
|
|
};
|