honojs-middleware/packages/hello
github-actions[bot] 2030c7215c
Version Packages (#5)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-16 18:44:08 +09:00
..
src feat: add hello middleware (#1) 2022-10-16 18:14:21 +09:00
CHANGELOG.md Version Packages (#5) 2022-10-16 18:44:08 +09:00
README.md feat: add hello middleware (#1) 2022-10-16 18:14:21 +09:00
jest.config.js feat: add hello middleware (#1) 2022-10-16 18:14:21 +09:00
package.json Version Packages (#5) 2022-10-16 18:44:08 +09:00
tsconfig.json feat: add hello middleware (#1) 2022-10-16 18:14:21 +09:00

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 '@honojs/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