Skip to content

Commit

Permalink
docs: remove mimes section in nodejs (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuapp authored May 2, 2024
1 parent 958344f commit 5360009
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions getting-started/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,6 @@ app.get(
)
```

### `mimes`

You can add MIME types with `mimes`:

```ts
app.get(
'/static/*',
serveStatic({
mimes: {
m3u8: 'application/vnd.apple.mpegurl',
ts: 'video/mp2t',
}
})
)
```

## http2

You can run hono on a [Node.js http2 Server](https://nodejs.org/api/http2.html).
Expand Down

0 comments on commit 5360009

Please sign in to comment.