Added .debug() to readme
This commit is contained in:
@@ -81,6 +81,14 @@ addEventListener('fetch', event => {
|
|||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
|
### `router.debug([state])`
|
||||||
|
|
||||||
|
Enable or disable debug mode. Which will return the `error.stack` in case of an exception instead of and empty `500` response. Debug mode is disabled by default.
|
||||||
|
|
||||||
|
#### `state`
|
||||||
|
State is a `boolean` which determines if debug mode should be enabled or not (default: `true`)
|
||||||
|
|
||||||
|
|
||||||
### `router.cors([config])`
|
### `router.cors([config])`
|
||||||
|
|
||||||
If enabled will overwrite other `OPTIONS` requests.
|
If enabled will overwrite other `OPTIONS` requests.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsndr/cloudflare-worker-router",
|
"name": "@tsndr/cloudflare-worker-router",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {},
|
"scripts": {},
|
||||||
|
|||||||
Reference in New Issue
Block a user