summaryrefslogtreecommitdiff
path: root/app/views/downloads/index.json.jbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/downloads/index.json.jbuilder')
-rw-r--r--app/views/downloads/index.json.jbuilder1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/downloads/index.json.jbuilder b/app/views/downloads/index.json.jbuilder
index 9933fd9..09c6faa 100644
--- a/app/views/downloads/index.json.jbuilder
+++ b/app/views/downloads/index.json.jbuilder
@@ -1,3 +1,4 @@
json.array!(@downloads) do |download|
json.extract! download, :id, :name, :filename, :type, :description, :hits
+ json.href request.base_url + download_path(download.filename)
end