1
0
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:
Fredrik Oseberg 2021-12-06 15:01:30 +01:00
parent 2c974270c4
commit 774f6a64f2
2 changed files with 2 additions and 2 deletions

View File

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

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(