0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 17:46:30 +01:00
hono/deno_dist/middleware.ts
Yusuke Wada 46c6a8de5e
feat(middleware): introduce "built-in" Validator Middleware (#505)
* feat(middleware): introduce built-in Validator Middleware

* fixed type of `req.json()`

* Feat/builtin validator middleware another idea (#508)

* Enable overwriting of query/header data.

* Returns only verified data.

* rename `index.test.ts` to `middleware.test.ts`

* add `removeAdditional` option

* handling error that the JSON body is null

* tidy

* check is it string or not

* implement `isIn`

* enable validation the valies are duplicate

Co-authored-by: Taku Amano <taku@taaas.jp>
2022-09-13 07:54:06 +09:00

15 lines
604 B
TypeScript

// Middleware
export * from './middleware/basic-auth/index.ts'
export * from './middleware/bearer-auth/index.ts'
export * from './middleware/compress/index.ts'
export * from './middleware/cors/index.ts'
export * from './middleware/etag/index.ts'
export * from './middleware/html/index.ts'
export * from './middleware/jsx/index.ts'
export * from './middleware/jwt/index.ts'
export * from './middleware/logger/index.ts'
export * from './middleware/powered-by/index.ts'
export * from './middleware/pretty-json/index.ts'
export * from './middleware/validator/index.ts'
export * from './deno/serve-static.ts'