Commit 5fd85e9fe1d9b48b47e582dfd777a75a4a607a2a

Authored by Leandro Santos
2 parents f64d7f33 e31e4159

Merge branch 'api' into stable

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
... ...