about summary refs log tree commit diff
path: root/app/views/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-17 17:47:26 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-17 17:47:26 +0200
commitbd5ad304bac69b34a3c223e9baac532106db7dd8 (patch)
tree46d98c91108401e19a5065103b7c1f48db91def8 /app/views/api
parent183a23943bba2c214c56bf43c706f3f34d9bde32 (diff)
Adding media controller, 1 webm/compose form allowed, previews generated
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/media/create.rabl3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/api/media/create.rabl b/app/views/api/media/create.rabl
index 0239aa585..803a93094 100644
--- a/app/views/api/media/create.rabl
+++ b/app/views/api/media/create.rabl
@@ -1,4 +1,5 @@
 object @media
-attribute :id
+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) }