Add API for getting info about authenticated user: /api/v1/accounts/verify_credentials
This commit is contained in:
@ -1,11 +1,16 @@
|
||||
class Api::V1::AccountsController < ApiController
|
||||
before_action :doorkeeper_authorize!
|
||||
before_action :set_account
|
||||
before_action :set_account, except: :verify_credentials
|
||||
respond_to :json
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def verify_credentials
|
||||
@account = current_user.account
|
||||
render action: :show
|
||||
end
|
||||
|
||||
def following
|
||||
@following = @account.following
|
||||
end
|
||||
|
Reference in New Issue
Block a user