1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

fix: import paths

This commit is contained in:
Fredrik Oseberg 2022-02-25 11:55:29 +01:00
parent 664664200d
commit bf778a6741
2 changed files with 7 additions and 7 deletions

View File

@ -85,7 +85,6 @@ export default class ProjectFeaturesController extends Controller {
this.toggleEnvironmentOff,
UPDATE_FEATURE_ENVIRONMENT,
);
// activation strategies
this.get(`${PATH_STRATEGIES}`, this.getStrategies);
this.post(
@ -93,11 +92,7 @@ export default class ProjectFeaturesController extends Controller {
this.addStrategy,
CREATE_FEATURE_STRATEGY,
);
this.post(
`${PATH_STRATEGIES}/validate-constraint`,
this.validateConstraint,
NONE,
);
this.get(`${PATH_STRATEGY}`, this.getStrategy);
this.put(
`${PATH_STRATEGY}`,
@ -114,6 +109,11 @@ export default class ProjectFeaturesController extends Controller {
this.deleteStrategy,
DELETE_FEATURE_STRATEGY,
);
this.post(
`${PATH_FEATURE}/validate-constraint`,
this.validateConstraint,
NONE,
);
// feature toggles
this.get(PATH, this.getFeatures);

View File

@ -67,7 +67,7 @@ import {
validateNumber,
validateSemver,
validateString,
} from 'lib/util/validators/constraint-types';
} from '../util/validators/constraint-types';
import { IContextFieldStore } from 'lib/types/stores/context-field-store';
interface IFeatureContext {