mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 21:41:49 +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.
15 lines
350 B
JavaScript
15 lines
350 B
JavaScript
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
|
import styleBody from 'ghost/mixins/style-body';
|
|
|
|
var EditorNewRoute = AuthenticatedRoute.extend(styleBody, {
|
|
classNames: ['editor'],
|
|
|
|
model: function () {
|
|
return this.store.createRecord('post', {
|
|
title: ''
|
|
});
|
|
}
|
|
});
|
|
|
|
export default EditorNewRoute;
|