mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-18 12:54:27 +01:00
15 lines
271 B
Ruby
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
|