docs: not to escape with SwaggerUI html (#237)
parent
73eaaa588d
commit
bef1b5d3ce
|
@ -40,7 +40,7 @@ import { SwaggerUI } from '@hono/swagger-ui'
|
||||||
const app = new Hono()
|
const app = new Hono()
|
||||||
|
|
||||||
app.get('/ui', (c) => {
|
app.get('/ui', (c) => {
|
||||||
return c.html(html`
|
return c.html(`
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
@ -57,6 +57,7 @@ app.get('/ui', (c) => {
|
||||||
${SwaggerUI({ url: '/doc' })}
|
${SwaggerUI({ url: '/doc' })}
|
||||||
</html>
|
</html>
|
||||||
`)
|
`)
|
||||||
|
})
|
||||||
export default app
|
export default app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue