froute - Simple Node.js Routing
RESTful API routing
So, you're writing a small RESTful API in Node.js. Do you really want to use something huge and bloated like Express? No, no you don't.
Enter "froute". Simple, powerful and functional routing for node.
Install it
npm install froute --save
Require it
var froute = require("froute");
Use it
var template = "/apple/{type}/size/{size}";
froute.bind(template, function(params) {
// Handle
});
froute.dispatch("/apple/gala/size/large");
froute links
Written by Lee Crossley
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#