internetee-registry/app/controllers/repp/v1/accounts_controller.rb
2020-10-08 16:28:05 +03:00

11 lines
301 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(json: resp, status: :ok)
end
end
end
end