0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services/route/index.js

23 lines
794 B
JavaScript
Raw Normal View History

/**
* # Route Service
*
* Note: routes are patterns, not individual URLs, which have either
* subrouters, or controllers mounted on them. There are not that many routes.
*
* The route service is intended to:
* - keep track of the registered routes, and what they have mounted on them
* - provide a way for apps to register routes
* - expose base classes & registry to the rest of Ghost
*/
// This is the main router, that gets extended & mounted /site
module.exports.siteRouter = require('./site-router');
// We expose this via the App Proxy, so that Apps can register routes
module.exports.appRouter = require('./app-router');
// Classes for other parts of Ghost to extend
module.exports.ParentRouter = require('./ParentRouter');
module.exports.registry = require('./registry');