about summary refs log tree commit diff
path: root/app/views/api/media/create.rabl
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/api/media/create.rabl')
-rw-r--r--app/views/api/media/create.rabl3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/api/media/create.rabl b/app/views/api/media/create.rabl
new file mode 100644
index 000000000..23909066d
--- /dev/null
+++ b/app/views/api/media/create.rabl
@@ -0,0 +1,3 @@
+object @media
+attribute :id
+node(:url) { |media| full_asset_url(media.file.url) }