TryGhost/Ghost

View on GitHub
ghost/admin/app/routes/lexical-editor/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';

export default class IndexRoute extends AuthenticatedRoute {
    beforeModel() {
        super.beforeModel(...arguments);
        this.replaceWith('lexical-editor.new', 'post');
    }
}