adds routes and resource controllers