2014-03-03 21:18:10 +01:00
|
|
|
import ajax from 'ghost/utils/ajax';
|
|
|
|
import styleBody from 'ghost/mixins/style-body';
|
2014-03-11 17:23:32 +01:00
|
|
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
2014-03-02 15:30:35 +01:00
|
|
|
|
2014-03-11 17:23:32 +01:00
|
|
|
var EditorRoute = AuthenticatedRoute.extend(styleBody, {
|
2014-03-03 21:18:10 +01:00
|
|
|
classNames: ['editor'],
|
2014-03-02 15:30:35 +01:00
|
|
|
|
|
|
|
model: function (params) {
|
2014-03-03 21:18:10 +01:00
|
|
|
return ajax('/ghost/api/v0.1/posts/' + params.post_id);
|
2014-03-02 15:30:35 +01:00
|
|
|
}
|
2014-03-03 21:18:10 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default EditorRoute;
|