0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/frontend/web/routes.js
Hannah Wolfe faea2da596
Moved server/web/site to frontend/web
- 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
2021-10-21 19:28:18 +01:00

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