Ghost/ghost/admin/routes/posts.js
Manuel Mitasch a9a69fa441 Add admin prototype
issue #2270

- from https://github.com/manuelmitasch/ghost-admin-ember-demo
- Not working properly: added ic-ajax mock in app.js but promise not resolving => loading route always active
2014-03-07 14:01:26 +00:00

16 lines
300 B
JavaScript

import ajax from "ghost/utils/ajax";
export default Ember.Route.extend({
classNames: "manage",
model: function () {
return ajax("/ghost/api/v0.1/posts");
},
actions: {
openEditor: function (post) {
this.transitionTo('editor', post);
}
}
});