mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
7e0c71509b
- App service is for our internal frontend apps - This is a very straightforward move as this truly belongs to frontend
19 lines
642 B
JavaScript
19 lines
642 B
JavaScript
const helpers = require('../../helpers/register');
|
|
const routingService = require('../../services/routing');
|
|
|
|
module.exports.getInstance = function getInstance() {
|
|
const appRouter = routingService.registry.getRouter('appRouter');
|
|
|
|
return {
|
|
helpers: {
|
|
register: helpers.registerThemeHelper.bind(helpers),
|
|
registerAsync: helpers.registerAsyncThemeHelper.bind(helpers)
|
|
},
|
|
// Expose the route service...
|
|
routeService: {
|
|
// This allows for mounting an entirely new Router at a path...
|
|
registerRouter: appRouter.mountRouter.bind(appRouter)
|
|
}
|
|
};
|
|
};
|