mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
16 lines
300 B
JavaScript
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);
|
||
|
}
|
||
|
}
|
||
|
});
|