diff --git a/src/lib/routes/admin-api/feature.ts b/src/lib/routes/admin-api/feature.ts index bc3b00ad7b6..8488996d44d 100644 --- a/src/lib/routes/admin-api/feature.ts +++ b/src/lib/routes/admin-api/feature.ts @@ -8,6 +8,7 @@ import { UPDATE_FEATURE, DELETE_FEATURE, CREATE_FEATURE, + NONE, } from '../../types/permissions'; import { IUnleashConfig } from '../../types/option'; import { IUnleashServices } from '../../types/services'; @@ -44,7 +45,7 @@ class FeatureController extends Controller { this.get('/:featureName', this.getToggle); this.put('/:featureName', this.updateToggle, UPDATE_FEATURE); this.delete('/:featureName', this.archiveToggle, DELETE_FEATURE); - this.post('/validate', this.validate, UPDATE_FEATURE); + this.post('/validate', this.validate, NONE); this.post('/:featureName/toggle', this.toggle, UPDATE_FEATURE); this.post('/:featureName/toggle/on', this.toggleOn, UPDATE_FEATURE); this.post('/:featureName/toggle/off', this.toggleOff, UPDATE_FEATURE);