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