about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-14 23:10:07 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-14 23:10:07 +0200
commite21a3fe0cd91dfeae76bce4d58c7611e78b60fbf (patch)
tree6a4f6ceda687bbd079845daf2b1c90d15225893b /config
parent91144d46ecc1a6e2d39abe8bea2d62c5cb57aca3 (diff)
Adding sync of follow relationships to Neo4J, accounts/suggestions API
Diffstat (limited to 'config')
-rw-r--r--config/application.rb4
-rw-r--r--config/initializers/neography.rb5
-rw-r--r--config/routes.rb1
3 files changed, 8 insertions, 2 deletions
diff --git a/config/application.rb b/config/application.rb
index b1c9d9f6f..3734ce928 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,8 +22,8 @@ module Mastodon
     # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
     # config.i18n.default_locale = :de
 
-    config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
-    config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
+    # config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
+    # config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
 
     config.active_job.queue_adapter = :sidekiq
 
diff --git a/config/initializers/neography.rb b/config/initializers/neography.rb
new file mode 100644
index 000000000..25d54658b
--- /dev/null
+++ b/config/initializers/neography.rb
@@ -0,0 +1,5 @@
+Neography.configure do |config|
+  config.protocol             = "http"
+  config.server               = ENV['NEO4J_HOST'] || 'localhost'
+  config.port                 = ENV['NEO4J_PORT'] || 7474
+end
diff --git a/config/routes.rb b/config/routes.rb
index ec0309dc7..f3708938a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -73,6 +73,7 @@ Rails.application.routes.draw do
         collection do
           get :relationships
           get :verify_credentials
+          get :suggestions
         end
 
         member do