Working follow and unfollow interactions for users
This commit is contained in:
@@ -9,11 +9,18 @@ defmodule Mixer.Accounts do
|
||||
resource Mixer.Accounts.Token
|
||||
resource Mixer.Accounts.User
|
||||
resource Mixer.Accounts.ApiKey
|
||||
|
||||
resource Mixer.Accounts.Follow
|
||||
end
|
||||
|
||||
typescript_rpc do
|
||||
resource Mixer.Accounts.User do
|
||||
rpc_action :read_user, :read
|
||||
end
|
||||
resource Mixer.Accounts.Follow do
|
||||
rpc_action :read_follow, :read
|
||||
rpc_action :follow_user, :follow
|
||||
rpc_action :unfollow_user, :unfollow
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user