github honojs/hono v1.5.2

latest releases: v4.6.1, v4.6.0, v4.5.11...
2 years ago

Summary

  • c.req is now HonoRequest instead of Request.
  • 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

New Contributors

Full Changelog: v1.5.1...v1.5.2

Don't miss a new hono release

NewReleases is sending notifications on new releases.