Fixed the lookup API method
This commit is contained in:
parent
5b10329394
commit
c28971c70c
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue