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