Commit 5637b960944e87eaf66f4ab1d82313893368b625
1 parent
ba0a61bd
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
expose full image path
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
| @@ -8,6 +8,10 @@ module Noosfero | @@ -8,6 +8,10 @@ module Noosfero | ||
| 8 | 8 | ||
| 9 | class Image < Grape::Entity | 9 | class Image < Grape::Entity |
| 10 | root 'images', 'image' | 10 | root 'images', 'image' |
| 11 | + | ||
| 12 | + expose :url do |image, options| | ||
| 13 | + image.public_filename | ||
| 14 | + end | ||
| 11 | 15 | ||
| 12 | expose :icon_url do |image, options| | 16 | expose :icon_url do |image, options| |
| 13 | image.public_filename(:icon) | 17 | image.public_filename(:icon) |