docs: not to escape with SwaggerUI html (#237)

pull/242/head
Sor4chi 2023-11-06 08:25:53 +09:00 committed by GitHub
parent 73eaaa588d
commit bef1b5d3ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ import { SwaggerUI } from '@hono/swagger-ui'
const app = new Hono()
app.get('/ui', (c) => {
return c.html(html`
return c.html(`
<html lang="en">
<head>
<meta charset="utf-8" />
@ -57,6 +57,7 @@ app.get('/ui', (c) => {
${SwaggerUI({ url: '/doc' })}
</html>
`)
})
export default app
```