put the build id in the output file urls

the url attribute will now give the preferred location for accessing
the output file, without the url having to be constructed by the web
client
This commit is contained in:
Brian Gough
2016-05-27 15:25:13 +01:00
parent ac3b7a571a
commit 78b88683fc
2 changed files with 5 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ describe "CompileController", ->
status: "success"
error: null
outputFiles: @output_files.map (file) =>
url: "#{@Settings.apis.clsi.url}/project/#{@project_id}/output/#{file.path}"
url: "#{@Settings.apis.clsi.url}/project/#{@project_id}/build/#{file.build}/output/#{file.path}"
path: file.path
type: file.type
build: file.build