baugarten/node-restful — pull request #41 by nicoespeon (2013-09-09 10:11:33+00:00)
Title: Don't limit _id to the mongoDB default one

Hi there =)

I'm currently working on building a REST API with node for a project and it comes that the `_id` we use is not the default one created by mongoDB, but a custom one. In fact, we are using auto-incremented numbers in this case.

Unfortunately, it didn't work with your splendid module because the code only expect a specific format for `:id`. We dropped off this limitation because ID can be something else, such like a `"string"` or a `"number"`, and the API should still working.

So I'm proposing this correction to you, in case there would be no specific reason for ID to be limited to the default one. Tell me if there is anything wrong here.

By the way: thanks a lot for your module, very useful =)