mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
a89f38c165
- Moved post route under posts resource - Changed ajax to use ic.ajax.request instead of ic.ajax.raw
10 lines
No EOL
279 B
JavaScript
10 lines
No EOL
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);
|
|
}
|
|
}
|
|
}); |