vanilla-http-router
Simple routing for Node.js HTTP server
Installation
$ npm install http-router
Usage
var http = Router = appRouter = ; appRouter ; appRouter ; appRouter ; appRouter ; http );
$ curl -X GET http://localhost:3000Got a GET request to /$ curl -X POST http://localhost:3000Got a POST request to /$ curl -X PUT http://localhost:3000/userGot a PUT request to /user$ curl -X DELETE http://localhost:3000/unknownGot a DELTE request to /user
Test
$ npm install$ npm test