Commit 2b82eb65d0a0cdcae965f7f47bb2f45cf1d87a3a
1 parent
9131021b
Exists in
staging
expose filename image attribute in api
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/api/entities.rb
| @@ -48,6 +48,7 @@ module Api | @@ -48,6 +48,7 @@ module Api | ||
| 48 | class Image < Entity | 48 | class Image < Entity |
| 49 | root 'images', 'image' | 49 | root 'images', 'image' |
| 50 | 50 | ||
| 51 | + expose :filename | ||
| 51 | expose :url do |image, options| | 52 | expose :url do |image, options| |
| 52 | image.public_filename | 53 | image.public_filename |
| 53 | end | 54 | end |