mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Make debug an authenticated route
This commit is contained in:
parent
fccb5eaf26
commit
a8932a7a24
1 changed files with 4 additions and 6 deletions
|
@ -1,13 +1,11 @@
|
||||||
import styleBody from 'ghost/mixins/style-body';
|
import styleBody from 'ghost/mixins/style-body';
|
||||||
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
||||||
import SettingsModel from 'ghost/models/settings';
|
import SettingsModel from 'ghost/models/settings';
|
||||||
|
|
||||||
var settingsModel = SettingsModel.create();
|
export default AuthenticatedRoute.extend(styleBody, {
|
||||||
|
|
||||||
var DebugRoute = Ember.Route.extend(styleBody, {
|
|
||||||
classNames: ['settings'],
|
classNames: ['settings'],
|
||||||
|
|
||||||
model: function () {
|
model: function () {
|
||||||
return settingsModel;
|
return SettingsModel.create();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default DebugRoute;
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue