2014-03-10 07:44:08 +04:00
|
|
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
2014-05-21 17:53:00 +04:00
|
|
|
import styleBody from 'ghost/mixins/style-body';
|
|
|
|
import Post from 'ghost/models/post';
|
2014-03-10 07:44:08 +04:00
|
|
|
|
|
|
|
var NewRoute = AuthenticatedRoute.extend(styleBody, {
|
2014-05-21 17:53:00 +04:00
|
|
|
controllerName: 'posts/post',
|
2014-03-10 07:44:08 +04:00
|
|
|
classNames: ['editor'],
|
|
|
|
|
|
|
|
renderTemplate: function () {
|
|
|
|
this.render('editor');
|
2014-05-21 17:53:00 +04:00
|
|
|
},
|
|
|
|
|
|
|
|
model: function () {
|
|
|
|
return Post.create();
|
2014-03-10 07:44:08 +04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-05-21 17:53:00 +04:00
|
|
|
export default NewRoute;
|