mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: open validate endpoint
This commit is contained in:
parent
2c974270c4
commit
774f6a64f2
@ -44,7 +44,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);
|
||||
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