mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
f0283ddb5a
- 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;
|