import AdminRoute from 'ghost-admin/routes/admin'; import {inject as service} from '@ember/service'; export default class AuditLogRoute extends AdminRoute { @service feature; beforeModel() { super.beforeModel(...arguments); if (!this.feature.auditLog) { return this.transitionTo('home'); } } buildRouteInfoMetadata() { return { titleToken: 'Audit log' }; } }