1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +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, this.toggleEnvironmentOff,
UPDATE_FEATURE_ENVIRONMENT, UPDATE_FEATURE_ENVIRONMENT,
); );
// activation strategies // activation strategies
this.get(`${PATH_STRATEGIES}`, this.getStrategies); this.get(`${PATH_STRATEGIES}`, this.getStrategies);
this.post( this.post(
@ -93,11 +92,7 @@ export default class ProjectFeaturesController extends Controller {
this.addStrategy, this.addStrategy,
CREATE_FEATURE_STRATEGY, CREATE_FEATURE_STRATEGY,
); );
this.post(
`${PATH_STRATEGIES}/validate-constraint`,
this.validateConstraint,
NONE,
);
this.get(`${PATH_STRATEGY}`, this.getStrategy); this.get(`${PATH_STRATEGY}`, this.getStrategy);
this.put( this.put(
`${PATH_STRATEGY}`, `${PATH_STRATEGY}`,
@ -114,6 +109,11 @@ export default class ProjectFeaturesController extends Controller {
this.deleteStrategy, this.deleteStrategy,
DELETE_FEATURE_STRATEGY, DELETE_FEATURE_STRATEGY,
); );
this.post(
`${PATH_FEATURE}/validate-constraint`,
this.validateConstraint,
NONE,
);
// feature toggles // feature toggles
this.get(PATH, this.getFeatures); this.get(PATH, this.getFeatures);

View File

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