Adding sync of follow relationships to Neo4J, accounts/suggestions API
This commit is contained in:
parent
91144d46ec
commit
e21a3fe0cd
11 changed files with 76 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
5
config/initializers/neography.rb
Normal file
5
config/initializers/neography.rb
Normal 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
|
|
@ -73,6 +73,7 @@ Rails.application.routes.draw do
|
|||
collection do
|
||||
get :relationships
|
||||
get :verify_credentials
|
||||
get :suggestions
|
||||
end
|
||||
|
||||
member do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue