mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
16 lines
363 B
Ruby
16 lines
363 B
Ruby
module Repp
|
|
class AccountV1 < Grape::API
|
|
version 'v1', using: :path
|
|
|
|
resource :accounts do
|
|
desc 'Return current cash account balance'
|
|
|
|
get 'balance' do
|
|
@response = {
|
|
balance: current_user.registrar.cash_account.balance,
|
|
currency: current_user.registrar.cash_account.currency
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|