Tiny router middleware for Hoa.
$ npm i @hoajs/tiny-router --saveimport { Hoa } from 'hoa'
import { tinyRouter } from '@hoajs/tiny-router'
const app = new Hoa()
app.extend(tinyRouter())
app.get('/users/:name', async (ctx, next) => {
ctx.res.body = `Hello, ${ctx.req.params.name}!`
})
export default appThe documentation is available on hoa-js.com
$ npm testMIT