0.1.0 • Published 9 years ago

stick-rest v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Stick REST

Install with npm install stick-rest (assuming you've already installed Stick with npm install stick and Common Node with npm install -g common-node), then copy the following into index.js:

var Application = require("stick").Application;

app.configure("stick-rest", "route");

app.get("/", function() {
  return {hello:"world"};
});

Then run with common-node index.js and test with curl http://localhost:8080.