internetee-registry/app/controllers/repp/v1/accounts_controller.rb
2020-10-21 15:34:16 +03:00

11 lines
296 B
Ruby

module Repp
module V1
class AccountsController < BaseController
def balance
resp = { balance: current_user.registrar.cash_account.balance,
currency: current_user.registrar.cash_account.currency }
render_success(data: resp)
end
end
end
end