about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorJoachim Viide <jviide@iki.fi>2017-04-15 03:32:42 +0300
committerEugen <eugen@zeonfederated.com>2017-04-15 02:32:42 +0200
commitef879a88393598f5dd83a2ced6dfadbebe888203 (patch)
treee3d9ae4815e0b520a0152313633ba2da5ed1dbef /app/controllers
parent9240ca6cefdec25574f329b70438c4fa4571a1e4 (diff)
Send initial state in a <script type="application/json"> tag (#1806)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/home_controller.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 814b1f758..65ac10692 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -4,9 +4,10 @@ class HomeController < ApplicationController
   before_action :authenticate_user!
 
   def index
-    @body_classes = 'app-body'
-    @token        = find_or_create_access_token.token
-    @web_settings = Web::Setting.find_by(user: current_user)&.data || {}
+    @body_classes           = 'app-body'
+    @token                  = find_or_create_access_token.token
+    @web_settings           = Web::Setting.find_by(user: current_user)&.data || {}
+    @streaming_api_base_url = Rails.configuration.x.streaming_api_base_url
   end
 
   private