title: Add RESTful endpoints to Rails application
body: <p>I have a rails application that just uses the default, catch all route currently. This works fine for regular HTML requests. </p>
  
  <pre><code>match ':controller(/:action(/:id))(.:format)'
  </code></pre>
  
  <p>I would like to expose CRUD functionality to mobile clients. So how do I extend what I already have to support restuful requests (JSON)? Should I just add resource routes to my route.rb before the default route? Or should I stop using the default route in favor of resource routes? I suppose another option could be to specify the restful routes explicitly using match. This seems wrong however.</p>
  
  <p>Thanks for any advice!</p>