1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: open validate endpoint (#1162)

* fix: open validate endpoint

* fix: set validate permission to none
This commit is contained in:
Fredrik Strand Oseberg 2021-12-06 15:19:25 +01:00 committed by GitHub
parent 2c974270c4
commit 98d64fc1e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);