* refactor: composite build * chore(ua-blocker): move demo.ts out of src |
||
---|---|---|
.. | ||
src | ||
CHANGELOG.md | ||
README.md | ||
package.json | ||
tsconfig.build.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
vitest.config.ts |
README.md
Hello middleware for Hono
An example project of the third-party middleware for Hono.
This middleware add X-Message
header to the Response.
Usage
import { hello } from '@hono/hello'
import { Hono } from 'hono'
const app = new Hono()
app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))
export default app
Author
Yusuke Wada https://github.com/yusukebe
License
MIT