mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
faea2da596
- we're slowly trying to draw the lines between the backend and the frontend correctly - these files deal only with serving the frontend so they should live there - there are lots of mixed requires in these files, so having them in the right place makes that clear
13 lines
555 B
JavaScript
13 lines
555 B
JavaScript
const debug = require('@tryghost/debug')('routing');
|
|
|
|
const routing = require('../services/routing');
|
|
// NOTE: temporary import from the frontend, will become a backend service soon
|
|
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);
|
|
};
|