github honojs/hono v1.5.2

latest releases: v4.6.9, v4.6.8, v4.6.7...
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.