1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00
fab-manager/app/controllers/api/wallet_controller.rb
2016-07-21 16:32:53 +02:00

15 lines
271 B
Ruby

class API::WalletController < API::ApiController
before_action :authenticate_user!
def my
@wallet = current_user.wallet
render :show
end
def by_user
authorize Wallet
@wallet = Wallet.find_by(user_id: params[:user_id])
render :show
end
end