A wrapper for the Whook HTTP Transaction service to handle patch method compatibility.
npm install @whook/method-override[//]: # ( )
[//]: # (This file is automatically generated by a metapak)
[//]: # (module. Do not change it except between the)
[//]: # (content:start/end flags, your changes would)
[//]: # (be overridden.)
[//]: # ( )

[//]: # (::contents:start)
To use this Whook module, simply override
the httpTransaction service into your main file (usually in src/index.ts):
``diff
+import { initHTTPTransaction } from '@whook/whook';
+import wrapHTTPTransactionWithMethodOverride from '@whook/method-override';
// (...)
// The prepareEnvironment one is intended to prepare the server environment
export async function prepareEnvironment(
$: Knifecycle = new Knifecycle(),
): Promise
$ = await prepareBaseEnvironment($);
// (...)
+ // Add method override to the server
+ $.register(
+ wrapHTTPTransactionWithMethodOverride(initHTTPTransaction),
+ );
return $;
}
// (...)
``
[//]: # (::contents:end)