Added the ability to automatically route a resource controller