Commit 97aea55d32d40ce4aeb465b1735d9249c3a3380e
Committed by
Rodrigo Souto
1 parent
3e5d1d55
Exists in
master
and in
21 other branches
expose image for articles
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
... | ... | @@ -57,6 +57,7 @@ module Noosfero |
57 | 57 | expose :created_by, :as => :author, :using => Profile |
58 | 58 | expose :profile, :using => Profile |
59 | 59 | expose :categories, :using => Category |
60 | + expose :image, :using => Image | |
60 | 61 | end |
61 | 62 | |
62 | 63 | class Article < Grape::Entity |
... | ... | @@ -69,6 +70,7 @@ module Noosfero |
69 | 70 | expose :categories, :using => Category |
70 | 71 | expose :parent, :using => Article |
71 | 72 | expose :children, :using => ArticleChild |
73 | + expose :image, :using => Image | |
72 | 74 | end |
73 | 75 | |
74 | 76 | class Comment < Grape::Entity | ... | ... |