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,
|
||||
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);
|
||||
|
@ -72,7 +72,7 @@ export default class Controller {
|
||||
post(
|
||||
path: string,
|
||||
handler: IRequestHandler,
|
||||
permission?: string,
|
||||
permission: string,
|
||||
...acceptedContentTypes: string[]
|
||||
): void {
|
||||
this.app.post(
|
||||
|
Loading…
Reference in New Issue
Block a user