mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
import Route from '@ember/routing/route';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Route.extend({
|
|
config: service(),
|
|
|
|
beforeModel() {
|
|
this._super(...arguments);
|
|
if (!this.get('config.enableDeveloperExperiments')) {
|
|
return this.transitionTo('home');
|
|
}
|
|
}
|
|
}); |