mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
a77388159c
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
9 lines
252 B
JavaScript
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');
|
|
}
|
|
}
|