Commit 6138ba4dae728781e195c8e1c83352e1780c74f3
Committed by
Rodrigo Souto
1 parent
e11ffe36
Exists in
master
and in
29 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,11 +9,11 @@ module API | ||
9 | #FIXME make the pagination | 9 | #FIXME make the pagination |
10 | #FIXME put it on environment context | 10 | #FIXME put it on environment context |
11 | get do | 11 | get do |
12 | - Users.all | 12 | + present User.all, :with => Entities::User |
13 | end | 13 | end |
14 | 14 | ||
15 | get ":id" do | 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 | end | 17 | end |
18 | 18 | ||
19 | end | 19 | end |