honojs-middleware/packages/hello
github-actions[bot] 296446be5a
Version Packages (#229)
2023-11-03 05:59:16 +09:00
..
src feat(hello): infer type correctly using `satisfies` (#228) 2023-11-03 05:53:53 +09:00
CHANGELOG.md Version Packages (#229) 2023-11-03 05:59:16 +09:00
README.md feat: `@honojs` to `@hono` (#9) 2022-12-24 20:18:26 +09:00
jest.config.js feat: add hello middleware (#1) 2022-10-16 18:14:21 +09:00
package.json Version Packages (#229) 2023-11-03 05:59:16 +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 '@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