lib/http_service/naviai.rb in navi_client-1.0.1 vs lib/http_service/naviai.rb in navi_client-1.0.2
- old
+ new
@@ -1,18 +1,21 @@
require "httparty"
GO_SERVER_URL = 'http://localhost:9090'
-CLIENT_TYPE = 'locallockbox'
-
module HTTPService
class NaviAI
- def self.start(start_time, end_time)
+ def self.start(file_path, client_type, token)
+ if client_type == 'local'
+ go_url = 'http://localhost:9090'
+ else
+ go_url = ''
+ end
HTTParty.post(GO_SERVER_URL, body: {
- client_type: CLIENT_TYPE,
- start_time: start_time,
- end_time: end_time
+ client_type: client_type,
+ list_meta_path: file_path,
+ token: token
})
end
end
end