1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

fix: set validate permission to none

This commit is contained in:
Fredrik Oseberg 2021-12-06 15:10:42 +01:00
parent 774f6a64f2
commit a56ed03325
2 changed files with 3 additions and 2 deletions

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

View File

@ -72,7 +72,7 @@ export default class Controller {
post(
path: string,
handler: IRequestHandler,
permission?: string,
permission: string,
...acceptedContentTypes: string[]
): void {
this.app.post(