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';
|
2014-03-10 07:44:08 +04:00
|
|
|
|
|
|
|
var NewRoute = AuthenticatedRoute.extend(styleBody, {
|
2014-05-09 09:00:10 +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 () {
|
2014-05-09 09:00:10 +04:00
|
|
|
return this.store.createRecord('post', {
|
2014-05-31 22:32:22 +04:00
|
|
|
title: ''
|
2014-05-09 09:00:10 +04:00
|
|
|
});
|
2014-03-10 07:44:08 +04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-05-21 17:53:00 +04:00
|
|
|
export default NewRoute;
|