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:
parent
774f6a64f2
commit
a56ed03325
@ -8,6 +8,7 @@ import {
|
|||||||
UPDATE_FEATURE,
|
UPDATE_FEATURE,
|
||||||
DELETE_FEATURE,
|
DELETE_FEATURE,
|
||||||
CREATE_FEATURE,
|
CREATE_FEATURE,
|
||||||
|
NONE,
|
||||||
} from '../../types/permissions';
|
} from '../../types/permissions';
|
||||||
import { IUnleashConfig } from '../../types/option';
|
import { IUnleashConfig } from '../../types/option';
|
||||||
import { IUnleashServices } from '../../types/services';
|
import { IUnleashServices } from '../../types/services';
|
||||||
@ -44,7 +45,7 @@ class FeatureController extends Controller {
|
|||||||
this.get('/:featureName', this.getToggle);
|
this.get('/:featureName', this.getToggle);
|
||||||
this.put('/:featureName', this.updateToggle, UPDATE_FEATURE);
|
this.put('/:featureName', this.updateToggle, UPDATE_FEATURE);
|
||||||
this.delete('/:featureName', this.archiveToggle, DELETE_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', this.toggle, UPDATE_FEATURE);
|
||||||
this.post('/:featureName/toggle/on', this.toggleOn, UPDATE_FEATURE);
|
this.post('/:featureName/toggle/on', this.toggleOn, UPDATE_FEATURE);
|
||||||
this.post('/:featureName/toggle/off', this.toggleOff, UPDATE_FEATURE);
|
this.post('/:featureName/toggle/off', this.toggleOff, UPDATE_FEATURE);
|
||||||
|
@ -72,7 +72,7 @@ export default class Controller {
|
|||||||
post(
|
post(
|
||||||
path: string,
|
path: string,
|
||||||
handler: IRequestHandler,
|
handler: IRequestHandler,
|
||||||
permission?: string,
|
permission: string,
|
||||||
...acceptedContentTypes: string[]
|
...acceptedContentTypes: string[]
|
||||||
): void {
|
): void {
|
||||||
this.app.post(
|
this.app.post(
|
||||||
|
Loading…
Reference in New Issue
Block a user