Changed routes to allow for json/csv file types