mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #2917 from jaswilli/debug-cleanup
Make debug an authenticated route
This commit is contained in:
commit
438a20fd1e
1 changed files with 4 additions and 6 deletions
|
@ -1,13 +1,11 @@
|
|||
import styleBody from 'ghost/mixins/style-body';
|
||||
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
||||
import SettingsModel from 'ghost/models/settings';
|
||||
|
||||
var settingsModel = SettingsModel.create();
|
||||
|
||||
var DebugRoute = Ember.Route.extend(styleBody, {
|
||||
export default AuthenticatedRoute.extend(styleBody, {
|
||||
classNames: ['settings'],
|
||||
|
||||
model: function () {
|
||||
return settingsModel;
|
||||
return SettingsModel.create();
|
||||
}
|
||||
});
|
||||
|
||||
export default DebugRoute;
|
||||
|
|
Loading…
Reference in a new issue