Merge pull request #2765 from novaugust/ember-content-redirect

Add /content redirect to Ember admin.
This commit is contained in:
Hannah Wolfe 2014-05-17 20:24:10 +01:00
commit b139bb6380
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,8 @@ Router.map(function () {
this.route('apps');
});
this.route('debug');
//Redirect legacy content to posts
this.route('content');
});
export default Router;
export default Router;

View File

@ -0,0 +1,7 @@
var ContentRoute = Ember.Route.extend({
beforeModel: function () {
this.transitionTo('posts');
}
});
export default ContentRoute;