rschooley/app-routes — pull request #4 by sprjr (2013-10-09 19:45:53+00:00)
Title: functionality changes

## v0.1.1

- changed baseDir to not utilize `../` - we are using process.cwd() for now, but will need to update this later, baseDir should be the project directory and not the location of the module
- `resources()` supports optional middleware argument, which only works with a function for now; middleware function is included prior to the defaultAction so you can utilize an authorization function to protect routes (for example) or anything else you might want specific to that REST resource
- `resources()` does not use notFoundAction, instead only maps to functions that exist and lets the application handle the not found routes (e.g., `Cannot GET /`)

Notes:

We've got a few other ideas on multiple middleware functions later, and will want to add that to the other items for `match` and `root` most likely. I had already published on NPM so we could get it installed, but just unpublished now and will let you handle that if things look ok. Let me know if you like/dislike any of these changes. I'll also try to get an example app in there and some docs soon too.

Thanks!