0.0.1 • Published 11 months ago
next-api-switcher v0.0.1
useless switcher function for handling different HTTP methods
import createSwitcher from 'next-api-switcher'
createSwitcher({
async get(req, res) {
// do anything
},
post(req, res) {
// do anything
}
})
0.0.1
11 months ago