basic api to get historical data from gatd
flask shit for the data miner
routing for the data miner
modified to fix json shit