created the route to serve up the temperature data for a specified year via json request