honojs-middleware/packages/hello
Yusuke Wada ba243cd55e
remove changelog (#7)
2022-10-16 18:42:48 +09:00
..
src feat: add hello middleware (#1) 2022-10-16 18:14:21 +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 chore(hello): update `package.json` (#6) 2022-10-16 18:36:10 +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