move working with github api to server