I know this isn't RESTful, but for now, I'm trying to set up an api/v1 controller. Ideally I would like to call it like this:
site.com/api/v1/verify.xml
But right now I can't get the .xml to work. I have the following route so far:
map.namespace :api do |api|
api.connect ':controller/:action/:id'
end
I can do /api/v1/verify
but I don't think it is using the route above. For some reason it is still hitting my catch all route also even though it displays the right page.
map.connect '*path', :controller => 'application', :action => 'redirect_main'
So:
1) how do I get the .format
on there?
2) And how do I make it not hit my catch all route?