add /users/:id
This commit is contained in:
parent
e693fc365c
commit
1dd3324350
|
@ -37,6 +37,11 @@ class Travis::Api::App
|
||||||
# respond_with service(:users, :find_broadcasts), type: :broadcasts
|
# respond_with service(:users, :find_broadcasts), type: :broadcasts
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
get '/:id', scope: :private do
|
||||||
|
pass unless current_user.id.to_s == params[:id]
|
||||||
|
respond_with current_user
|
||||||
|
end
|
||||||
|
|
||||||
put '/:id?', scope: :private do
|
put '/:id?', scope: :private do
|
||||||
respond_with service(:update_user, params[:user])
|
respond_with service(:update_user, params[:user])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user