refactored postsList route to use a RouteController