return the file path in the output file list for easy lookup

This commit is contained in:
Brian Gough 2016-05-19 16:23:07 +01:00
parent b65dfb02a4
commit e286aede4e
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@ module.exports = CompileController =
error: error?.message or error
outputFiles: outputFiles.map (file) ->
url: "#{Settings.apis.clsi.url}/project/#{request.project_id}/output/#{file.path}"
path: file.path
type: file.type
build: file.build
}

View file

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