Adding sync of follow relationships to Neo4J, accounts/suggestions API

This commit is contained in:
Eugen Rochko
2016-10-14 23:10:07 +02:00
parent 91144d46ec
commit e21a3fe0cd
11 changed files with 76 additions and 5 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
Neography.configure do |config|
config.protocol = "http"
config.server = ENV['NEO4J_HOST'] || 'localhost'
config.port = ENV['NEO4J_PORT'] || 7474
end

View File

@ -73,6 +73,7 @@ Rails.application.routes.draw do
collection do
get :relationships
get :verify_credentials
get :suggestions
end
member do