diff --git a/.github/workflows/website-publish.yml b/.github/workflows/website-publish.yml index af872b2f2..e07c29f31 100644 --- a/.github/workflows/website-publish.yml +++ b/.github/workflows/website-publish.yml @@ -15,13 +15,13 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies diff --git a/website/docs/routers/http-router.md b/website/docs/routers/http-router.md index cf635f90e..1b484ce73 100644 --- a/website/docs/routers/http-router.md +++ b/website/docs/routers/http-router.md @@ -14,7 +14,7 @@ npm install --save @middy/http-router ## Options -- `routes` (array[{method, path, handler}]) (required): Array of route objects. +- `routes` (array[\{method, path, handler\}]) (required): Array of route objects. - `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 diff --git a/website/docs/routers/ws-router.md b/website/docs/routers/ws-router.md index f2786e8b4..987689cc9 100644 --- a/website/docs/routers/ws-router.md +++ b/website/docs/routers/ws-router.md @@ -14,7 +14,7 @@ npm install --save @middy/ws-router ## Options -- `routes` (array[{routeKey, handler}]) (required): Array of route objects. +- `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