mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Dynamic Routing Beta: Renamed Site and App Router
refs #9601 - consistency - the router names all use the same name pattern
This commit is contained in:
parent
5a61f99467
commit
3cdff10350
1 changed files with 2 additions and 2 deletions
4
core/server/services/routing/bootstrap.js
vendored
4
core/server/services/routing/bootstrap.js
vendored
|
@ -22,7 +22,7 @@ module.exports = function bootstrap() {
|
|||
registry.resetAllRouters();
|
||||
registry.resetAllRoutes();
|
||||
|
||||
const siteRouter = new ParentRouter('site');
|
||||
const siteRouter = new ParentRouter('SiteRouter');
|
||||
const previewRouter = new PreviewRouter();
|
||||
|
||||
siteRouter.mountRouter(previewRouter.router());
|
||||
|
@ -57,7 +57,7 @@ module.exports = function bootstrap() {
|
|||
|
||||
registry.setRouter('staticPagesRouter', staticPagesRouter);
|
||||
|
||||
const appRouter = new ParentRouter('apps');
|
||||
const appRouter = new ParentRouter('AppsRouter');
|
||||
siteRouter.mountRouter(appRouter.router());
|
||||
|
||||
registry.setRouter('appRouter', appRouter);
|
||||
|
|
Loading…
Add table
Reference in a new issue