mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +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');
|
|
}
|
|
}
|
|
}); |