Different handlers based on HTTP method for Micro
npm install micro-handlers> Different handlers based on HTTP method for Micro
!CI


``sh`
npm install micro-handlers
or
`sh`
yarn add micro-handlers
`js
const microHandlers = require('micro-handlers')
module.exports = microHandlers({
GET: (req, res) => {
res.end('Hello from GET')
},
POST: (req, res) => {
res.end('Hello from POST')
},
})
`
#### handlers
Type: Record
##### Method
Type: GET | POST | PUT | PATCH | DELETE
##### Handler
Type: Function