Moving get routes to a class.