diff options
Diffstat (limited to 'app/views/downloads')
-rw-r--r-- | app/views/downloads/index.json.jbuilder | 1 |
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 |