Ghost/core/client/routes/new.js

19 lines
430 B
JavaScript
Raw Normal View History

import AuthenticatedRoute from 'ghost/routes/authenticated';
import styleBody from 'ghost/mixins/style-body';
import Post from 'ghost/models/post';
var NewRoute = AuthenticatedRoute.extend(styleBody, {
controllerName: 'posts/post',
classNames: ['editor'],
renderTemplate: function () {
this.render('editor');
},
model: function () {
return Post.create();
}
});
export default NewRoute;