Ghost/ghost/admin/app/routes/react-editor/index.js

9 lines
252 B
JavaScript
Raw Normal View History

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