about summary refs log tree commit diff
path: root/app/views/api/media/create.rabl
blob: 0239aa585dd5d9a2226d8f72d481f33a3eee1da7 (plain) (blame)
1
2
3
4
object @media
attribute :id
node(:url) { |media| full_asset_url(media.file.url) }
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }