2014-03-09 22:44:08 -05:00
|
|
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
2014-05-21 08:53:00 -05:00
|
|
|
import styleBody from 'ghost/mixins/style-body';
|
2014-03-09 22:44:08 -05:00
|
|
|
|
|
|
|
var NewRoute = AuthenticatedRoute.extend(styleBody, {
|
2014-05-09 00:00:10 -05:00
|
|
|
controllerName: 'posts.post',
|
2014-03-09 22:44:08 -05:00
|
|
|
classNames: ['editor'],
|
|
|
|
|
|
|
|
renderTemplate: function () {
|
|
|
|
this.render('editor');
|
2014-05-21 08:53:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
model: function () {
|
2014-05-09 00:00:10 -05:00
|
|
|
return this.store.createRecord('post', {
|
2014-05-31 13:32:22 -05:00
|
|
|
title: ''
|
2014-05-09 00:00:10 -05:00
|
|
|
});
|
2014-03-09 22:44:08 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-05-21 08:53:00 -05:00
|
|
|
export default NewRoute;
|