feat: Store methods in MethodNotAllowedHttpError

This commit is contained in:
Joachim Van Herwegen
2022-03-25 11:34:19 +01:00
parent f3dedf4e27
commit effc20a270
8 changed files with 62 additions and 15 deletions

View File

@@ -68,7 +68,7 @@ export class SetupHttpHandler extends OperationHttpHandler {
switch (operation.method) {
case 'GET': return this.handleGet(operation);
case 'POST': return this.handlePost(operation);
default: throw new MethodNotAllowedHttpError();
default: throw new MethodNotAllowedHttpError([ operation.method ]);
}
}