0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/routes/editor.js
Manuel Mitasch 49ea71ed4f Amend fixtures & put body classes in styleBody mixin
- Change fixture response of posts route to actual format.
- Extracted classNames logic of routes into style-body mixin.
- Additionally replaced all double-quotes with single-quotes for style conformance.
2014-03-09 15:30:54 +00:00

12 lines
No EOL
299 B
JavaScript

import ajax from 'ghost/utils/ajax';
import styleBody from 'ghost/mixins/style-body';
var EditorRoute = Ember.Route.extend(styleBody, {
classNames: ['editor'],
model: function (params) {
return ajax('/ghost/api/v0.1/posts/' + params.post_id);
}
});
export default EditorRoute;