Ghost/core/client/routes/editor/index.js
Matt Enlow aa54821e64 Refactored Editor Routing
- Moved `new` route into `editor` resource (`editor.new`)
- Moved the current editor controller, view, and route to `editor.edit`
- Added `editor.index`, which automatically transitions into `editor.new`
- Moved controllers, views, templates, and routes to match new router config. Also changed links to `editor` into `editor.new` and `editor.edit` as appropriate.
2014-06-11 12:18:44 -06:00

8 lines
150 B
JavaScript

var EditorRoute = Ember.Route.extend({
beforeModel: function () {
this.transitionTo('editor.new');
}
});
export default EditorRoute;