demandchain/offers-services — pull request #1 by RealNobody (2013-03-15 07:05:13+00:00)
Title: Add routing for /api/v:api_version/:slug/:controller

You said you wanted routing for /api/v1/denver/deals to return a json list of deals for the region, and for me to submit a pull request for it.

As I understood the request, I think this should do it.
I don't have time to clean it up more (like take out the factory girl stuff I started on.)

I put in some basic testing and error handling, and I only handle API v1 because I only have 1 version of the API.

Hope you like it.

Enjoy!