1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/routes/home.js

15 lines
361 B
JavaScript
Raw Normal View History

import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
export default class HomeRoute extends Route {
@service config;
beforeModel() {
if (this.config.get('enableDeveloperExperiments')) {
this.transitionTo('dashboard');
} else {
this.transitionTo('site');
}
}
}