Skip to content

Swagger UI

Swagger UI Middleware provides a middleware and a component for integrating Swagger UI with Hono applications.

Snippets

ts
import { Hono } from 'hono'
import { swaggerUI } from '@hono/swagger-ui'

const app = new Hono()

// Use the middleware to serve Swagger UI at /ui
app.get('/ui', swaggerUI({ url: '/doc' }))

export default app

View more

Released under the MIT License.