parent
4706d43da2
commit
5facd8cd25
|
@ -269,7 +269,7 @@ You can configure middleware for each endpoint from a route created by `createRo
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { prettyJSON } from 'hono/pretty-json'
|
import { prettyJSON } from 'hono/pretty-json'
|
||||||
import { cache } from 'honoc/cache'
|
import { cache } from 'hono/cache'
|
||||||
|
|
||||||
app.use(route.getRoutingPath(), prettyJSON(), cache({ cacheName: 'my-cache' }))
|
app.use(route.getRoutingPath(), prettyJSON(), cache({ cacheName: 'my-cache' }))
|
||||||
app.openapi(route, handler)
|
app.openapi(route, handler)
|
||||||
|
|
Loading…
Reference in New Issue