From 9219d1b38061f50c3096f5a12c5cc7220da989cb Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Fri, 18 Nov 2016 14:32:06 -0500 Subject: [PATCH] Use correct endpoint for stage events --- .../javascripts/cycle_analytics/cycle_analytics_service.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_service.js.es6 b/app/assets/javascripts/cycle_analytics/cycle_analytics_service.js.es6 index 788bd14028c..06299bc8988 100644 --- a/app/assets/javascripts/cycle_analytics/cycle_analytics_service.js.es6 +++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_service.js.es6 @@ -28,7 +28,7 @@ startDate, } = options; - return $.get(`http://localhost:8000/${stage.title.toLowerCase()}.json`, { + return $.get(`${this.requestPath}/events/${stage.title.toLowerCase()}.json`, { cycle_analytics: { start_date: options.startDate }