| import { RulesService } from '../../../../api/api/rules.service'; | import { RulesService } from '../../../../api/api/rules.service'; | ||||
| import { RuleDataService } from '../../service/rule-data.service'; | import { RuleDataService } from '../../service/rule-data.service'; | ||||
| import { Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||
| import { environment } from '../../../environments/environment'; | |||||
| @Component({ | @Component({ | ||||
| selector: 'app-rules', | selector: 'app-rules', | ||||
| templateUrl: './rules.component.html', | templateUrl: './rules.component.html', | ||||
| protected ruleDataService: RuleDataService, | protected ruleDataService: RuleDataService, | ||||
| protected router: Router, | protected router: Router, | ||||
| ) { | ) { | ||||
| rulesService.configuration.basePath = 'http://localhost:3000'; | |||||
| rulesService.configuration.basePath = environment.apiUrl; | |||||
| } | } | ||||