Summary
c.req
is nowHonoRequest
instead ofRequest
.path
option has been added to serve-static middleware. You can write like a below:
app.get('/foo', (c) => {
return c.text('/foo')
})
// fallback
app.get('*', serveStatic({ path: './static/index.html' }))
What's Changed
- fix(typo) JSX README by @YukiYuigishi in #328
- refactor: make
HonoRequest
by @yusukebe in #330 - feat(serve-static): add
path
option by @yusukebe in #331
New Contributors
- @YukiYuigishi made their first contribution in #328
Full Changelog: v1.5.1...v1.5.2