Import routes from a controller directory

Import routes from a controller directory #796
I think it would be good to refactor this method a bit .. it seems strange that it has different responsibilities for directories and single resources