From 499beb4484031703f029511787163e3a5bb6e47a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 7 Sep 2016 18:17:15 +0200 Subject: UI for uploading media attachments (and cancelling them) Mostly resolves #8, though attachments are still not displayed in public view --- app/views/api/media/create.rabl | 1 + 1 file changed, 1 insertion(+) (limited to 'app/views/api') diff --git a/app/views/api/media/create.rabl b/app/views/api/media/create.rabl index 23909066d..0239aa585 100644 --- a/app/views/api/media/create.rabl +++ b/app/views/api/media/create.rabl @@ -1,3 +1,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)) } -- cgit