diff --git a/src/lib/routes/admin-api/project/features.ts b/src/lib/routes/admin-api/project/features.ts index 0a25d4f31d..f193d45eff 100644 --- a/src/lib/routes/admin-api/project/features.ts +++ b/src/lib/routes/admin-api/project/features.ts @@ -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); diff --git a/src/lib/services/feature-toggle-service.ts b/src/lib/services/feature-toggle-service.ts index 62a9d94ef7..3445a7629a 100644 --- a/src/lib/services/feature-toggle-service.ts +++ b/src/lib/services/feature-toggle-service.ts @@ -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 {