@hoajs/cors
v0.1.2
Published
CORS middleware for Hoa.
Downloads
23
Readme
@hoajs/cors
CORS middleware for Hoa.
Installation
$ npm i @hoajs/cors --saveQuick Start
import { Hoa } from 'hoa'
import { cors } from '@hoajs/cors'
const app = new Hoa()
app.use(cors())
app.use(async (ctx) => {
ctx.res.body = 'Hello, Hoa!'
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
