methor
v1.2.58
Published
Method-oriented layer for modern web ( Facebook api inspired )
Maintainers
Readme
Nodejs web application framework inspired by Facebook API
http://methor.clgt.io
Install
$ npm install methor --saveUSAGE
const Methor = require('methor')
const path = require('path')
const app = new Methor({
port: 3004,
methods: {
user
},
created(port, server) {
console.log('app started at port %d', port)
this.get('/logout', (req, res) => {
res.end('ahihi do ngok')
})
}
})
// app.get, app.post, ... many features
// curl http://localhost:3004/restserver?method=user.login