Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.js
package.json

README.md

Middleware

Install and Run

Download this example or clone Bottender.

curl https://codeload.github.com/Yoctol/bottender/tar.gz/master | tar -xz --strip=2 bottender-master/examples/middleware
cd middleware
npm install
npm run dev

Idea of this example

The feature of this example is using Handler as middleware, so you are able to combine two handlers into one.
For more information, check our Middleware guides.

Related examples