Skip to content

Commit

Permalink
docs: add in new option
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Sep 16, 2024
1 parent f750b1b commit 0ec67be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/routers/http-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ npm install --save @middy/http-router
- `method` (string) (required): One of `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS` and `ANY` that will match to any method passed in
- `path` (string) (required): AWS formatted path starting with `/`. Variable: `/{id}/`, Wildcard: `/{proxy+}`
- `handler` (function) (required): Any `handler(event, context)` function
- `notFoundHandler` (function): Override default 404 error thrown with your own custom response. Passes in `{method, path}`

NOTES:

Expand Down
1 change: 1 addition & 0 deletions website/docs/routers/ws-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ npm install --save @middy/ws-router
- `routes` (array[\{routeKey, handler\}]) (required): Array of route objects.
- `routeKey` (string) (required): AWS formatted route key. ie `$connect`, `$disconnect`, `$default`
- `handler` (function) (required): Any `handler(event, context, {signal})` function
- `notFoundHandler` (function): Override default 404 error thrown with your own custom response. Passes in `{routeKey}`

NOTES:

Expand Down

0 comments on commit 0ec67be

Please sign in to comment.