Skip to content

Swagger UI

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

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

See also

Released under the MIT License.