Ghost/ghost/admin/app/routes/react-editor/index.js
Kevin Ansfield a77388159c Duplicated editor screens to react-editor
no issue

- initial set up ready for testing use of react components (specifically an editor component for this experiment) inside of Admin
- added `react-editor` route
- duplicated all editor screen files and updated route references where necessary
2022-07-18 10:43:29 +01:00

9 lines
252 B
JavaScript

import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
export default class IndexRoute extends AuthenticatedRoute {
beforeModel() {
super.beforeModel(...arguments);
this.replaceWith('react-editor.new', 'post');
}
}