Skip to content

Commit

Permalink
fix: open validate endpoint (#1162)
Browse files Browse the repository at this point in the history
* fix: open validate endpoint

* fix: set validate permission to none
  • Loading branch information
FredrikOseberg committed Dec 6, 2021
1 parent 2c97427 commit 98d64fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/routes/admin-api/feature.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

1 comment on commit 98d64fc

@vercel
Copy link

@vercel vercel bot commented on 98d64fc Dec 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.