diff options
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/accounts/lookup_controller.rb | 5 |
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 |