mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
14 lines
376 B
Ruby
14 lines
376 B
Ruby
module Repp
|
|
module V1
|
|
class AccountsController < BaseController
|
|
|
|
api :GET, '/repp/v1/accounts/balance'
|
|
desc "Get account's balance"
|
|
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
|