Add http api for connection to node server.