A really (overly) simple verb respecting http router
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
routerClass.coffee

README.md

Coffeescript Request Router

Just a simple POC for routing node.js requests based on pathname.

Written mostly for fun and as example

Very simplistic:

  • Only allows adding one callback per route at a time.
  • No paramter matching in the pathname.
  • Only supports a few HTTP methods (trivial to add more)
  • Support only 1 error handler and 1 not-found handler
  • Has no tests

If none of the above are problems then you are in luck!

PRs and suggestions are welcome