Skip to content

v1.5.2

Compare
Choose a tag to compare
@yusukebe yusukebe released this 27 Jun 05:25

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