0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Add /content redirect to Ember admin.

Closes #2746
- Adds content route to router
- Content route transitions to posts route in the beforeModel hook.
This commit is contained in:
Matt Enlow 2014-05-14 18:11:46 -06:00
parent f1a3f1a7a5
commit a29289c448
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;