removed routes and replace with resources