honojs-middleware/packages/hello
github-actions[bot] 95ca0fcad3
Version Packages (#45)
2023-02-12 22:30:53 +09:00
..
src fix(hello): use `MiddlewareHandler` 2023-01-13 07:57:14 +09:00
CHANGELOG.md Version Packages (#45) 2023-02-12 22:30:53 +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 (#45) 2023-02-12 22:30:53 +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