Method Override Middleware for Hoa.
$ npm i @hoajs/method-override --saveimport { Hoa } from 'hoa'
import { methodOverride } from '@hoajs/method-override'
const app = new Hoa()
app.use(methodOverride())
app.use(async (ctx) => {
ctx.res.body = ctx.req.method
})
export default appThe documentation is available on hoa-js.com
$ npm testMIT