2021-07-06 13:02:37 +03:00
|
|
|
const debug = require('@tryghost/debug')('routing');
|
2019-06-19 12:30:28 +03:00
|
|
|
const routing = require('../../../frontend/services/routing');
|
2021-09-27 13:29:54 +03:00
|
|
|
const routeSettings = require('../../services/route-settings');
|
2017-11-09 16:58:22 +03:00
|
|
|
|
2018-08-06 18:18:59 +03:00
|
|
|
module.exports = function siteRoutes(options = {}) {
|
2021-07-06 13:02:37 +03:00
|
|
|
debug('site Routes', options);
|
2021-09-27 13:29:54 +03:00
|
|
|
options.routerSettings = routeSettings.loadRouteSettingsSync();
|
2018-08-06 18:18:59 +03:00
|
|
|
return routing.bootstrap.init(options);
|
2017-11-09 16:58:22 +03:00
|
|
|
};
|