mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
aa54821e64
- 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.
8 lines
150 B
JavaScript
8 lines
150 B
JavaScript
var EditorRoute = Ember.Route.extend({
|
|
beforeModel: function () {
|
|
this.transitionTo('editor.new');
|
|
}
|
|
});
|
|
|
|
export default EditorRoute;
|