add /users/:id

This commit is contained in:
Konstantin Haase 2013-01-21 12:13:39 +01:00
parent e693fc365c
commit 1dd3324350

View File

@ -37,6 +37,11 @@ class Travis::Api::App
# respond_with service(:users, :find_broadcasts), type: :broadcasts
# 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
respond_with service(:update_user, params[:user])
end