0.0.1 • Published 11 months ago

next-api-switcher v0.0.1

Weekly downloads
-
License
WTFPL
Repository
github
Last release
11 months ago

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