about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-21 17:33:04 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-21 17:33:04 +0100
commitc28971c70c3d5caf18a5e931ff345534f1e4cece (patch)
tree58e0e8772bc4a52490e75e20284269c0ed4f43a3 /app/controllers
parent5b10329394ae2ad76bcf1e613edd6e7d4b82b210 (diff)
Fixed the lookup API method
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/accounts/lookup_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/api/accounts/lookup_controller.rb b/app/controllers/api/accounts/lookup_controller.rb
index dc8bcb132..319401a2e 100644
--- a/app/controllers/api/accounts/lookup_controller.rb
+++ b/app/controllers/api/accounts/lookup_controller.rb
@@ -1,4 +1,7 @@
-class Api::Accounts::LookupController < ApplicationController
+class Api::Accounts::LookupController < ApiController
+  before_action :doorkeeper_authorize!
+  respond_to    :json
+
   def index
     @accounts = Account.where(domain: nil).where(username: lookup_params)
   end