0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/services/route/AppRouter.js
2017-11-01 15:55:06 +00:00

16 lines
391 B
JavaScript

'use strict';
/**
* An instance of router that is provided to Apps, to mount routes into.
*/
var debug = require('ghost-ignition').debug('services:routes:app'),
Router = require('./base/Router');
class AppRouter extends Router {
registerRouter(path, router) {
debug('registerRouter for', path);
this.router.use(path, router);
}
}
module.exports = AppRouter;