diff --git a/web/app/controllers/api_users_controller.rb b/web/app/controllers/api_users_controller.rb index 1666529af..b3849a0c5 100644 --- a/web/app/controllers/api_users_controller.rb +++ b/web/app/controllers/api_users_controller.rb @@ -938,7 +938,7 @@ class ApiUsersController < ApiController #fetch latency information from latency-graph serverless def get_latencies user_ids = params[:user_ids] - latency_url = "#{Rails.application.config.latency_data_host}/dev/user_latencies" + latency_url = "#{Rails.application.config.latency_data_host}/user_latencies" uri = URI(latency_url) begin http = Net::HTTP.new(uri.host, uri.port) diff --git a/web/config/environments/development.rb b/web/config/environments/development.rb index 478424b43..c0b3bf258 100644 --- a/web/config/environments/development.rb +++ b/web/config/environments/development.rb @@ -114,6 +114,6 @@ SampleApp::Application.configure do config.video_conferencing_host = "https://webrtc-demo.jamkazam.com" config.use_video_conferencing_server = true - config.latency_data_host = "http://localhost:4001" + config.latency_data_host = "http://localhost:4001/dev" config.latency_data_host_auth_code = "c2VydmVyOnBhc3N3b3Jk" end diff --git a/web/config/environments/test.rb b/web/config/environments/test.rb index e2627130e..61e785a9f 100644 --- a/web/config/environments/test.rb +++ b/web/config/environments/test.rb @@ -133,7 +133,7 @@ SampleApp::Application.configure do config.video_conferencing_host = "https://webrtc-demo.jamkazam.com" config.use_video_conferencing_server = false - config.latency_data_host = "http://localhost:4001" + config.latency_data_host = "http://localhost:4001/test" config.latency_data_host_auth_code = "c2VydmVyOnBhc3N3b3Jk" end