0.2.0 • Published 6 years ago

celer v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Celer

A very simple REST implementation based on pure string matching and events.


Here is an example of the the usage :-

const http = require('http');
const Celer = require('./index')
const celer = new Celer()

const PORT=8080

celer.get('/get', function (req, res) {
  res.end('Hello World')
})

celer.post('/post', function (req, res) {
  res.send('Hello World')
})

celer.put('/post', function (req, res) {
  res.send('Hello World')
})


var server = http.createServer(celer.dispatcher)

server.listen(PORT, function(){
    console.log("Server listening on: http://localhost:%s", PORT)
})

LICENSE

MIT

0.2.0

6 years ago

0.1.0

7 years ago