about summary refs log tree commit diff
path: root/app/views/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 17:46:36 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 17:46:36 +0200
commitae1fac006206ab28cd7cba63ab85c07a27f3d606 (patch)
tree61f9cd45d7ed804eab85ae6a28cee584af90bfe3 /app/views/api
parent05001d54d15c486caa6cebe9462222d37d87576d (diff)
Add API to upload media attachments
Diffstat (limited to 'app/views/api')
-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) }