about summary refs log tree commit diff
path: root/app/views/api/v1/media
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/api/v1/media')
-rw-r--r--app/views/api/v1/media/create.rabl5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/api/v1/media/create.rabl b/app/views/api/v1/media/create.rabl
new file mode 100644
index 000000000..803a93094
--- /dev/null
+++ b/app/views/api/v1/media/create.rabl
@@ -0,0 +1,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) }