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

13 lines
392 B
JavaScript
Raw Normal View History

const debug = require('@tryghost/debug')('frontend:routes');
const routing = require('../services/routing');
/**
*
* @param {import('../services/routing/router-manager').RouterConfig} routerConfig
* @returns {import('express').Router}
*/
module.exports = function siteRoutes(routerConfig) {
debug('site Routes', routerConfig);
return routing.routerManager.init(routerConfig);
};