1
0

Added .debug() to readme

This commit is contained in:
2021-06-13 12:51:01 +02:00
parent d63bdcbaab
commit f119047535
2 changed files with 9 additions and 1 deletions

View File

@@ -81,6 +81,14 @@ addEventListener('fetch', event => {
## 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])`
If enabled will overwrite other `OPTIONS` requests.

View File

@@ -1,6 +1,6 @@
{
"name": "@tsndr/cloudflare-worker-router",
"version": "1.1.2",
"version": "1.1.3",
"description": "",
"main": "index.js",
"scripts": {},