mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
01b49fede8
- Moved post route under posts resource - Changed ajax to use ic.ajax.request instead of ic.ajax.raw
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
export default Ember.Route.extend({
|
|
// redirect to first post subroute
|
|
redirect: function () {
|
|
var firstPost = (this.modelFor('posts') || []).get('firstObject');
|
|
|
|
if (firstPost) {
|
|
this.transitionTo('posts.post', firstPost);
|
|
}
|
|
}
|
|
}); |