0.1.0 • Published 9 years ago
stick-rest v0.1.0
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
.
0.1.0
9 years ago