Commit 6138ba4dae728781e195c8e1c83352e1780c74f3
Committed by
Rodrigo Souto
1 parent
e11ffe36
Exists in
staging
and in
41 other branches
fix user endpoints
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/api/v1/users.rb
| ... | ... | @@ -9,11 +9,11 @@ module API |
| 9 | 9 | #FIXME make the pagination |
| 10 | 10 | #FIXME put it on environment context |
| 11 | 11 | get do |
| 12 | - Users.all | |
| 12 | + present User.all, :with => Entities::User | |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | 15 | get ":id" do |
| 16 | - present Article.find(params[:id]).comments.find(params[:comment_id]), :with => Entities::User | |
| 16 | + present User.find(params[:id]), :with => Entities::User | |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | 19 | end | ... | ... |