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:
parent
2c974270c4
commit
98d64fc1e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user