How to get a custom query string with REST

Those are both custom routes, so you won't be able to use
map.resources for them. map.connect will work fine.