JSPM

  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q51337F
  • License MIT

a router style restserver - method

Package Exports

  • methor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (methor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

methor

NPM Version NPM Downloads Node.js Version

a router style restserver - method

Install

$ npm install methor --save

USAGE

const Methor = require('methor')

new Methor({
  port: 3004,
  methods: {
    login(req, res) {
      res.end('hello world')
    }
  },
  created({port}) {
    console.log('app started at port %d', port)
  }
})
  .init()

Methor(options)

return abstract of Router

Options