updating stats counter

This commit is contained in:
2020-07-07 21:19:16 +02:00
parent 4f0393a674
commit a6e35644ab
3 changed files with 39 additions and 3 deletions

View File

@@ -228,6 +228,7 @@ function fileFromAPIResp(resp) {
resp.download_href = apiEndpoint+"/file/"+resp.id+"?download"
resp.view_href = apiEndpoint+"/file/"+resp.id+"/view"
resp.timeseries_href = apiEndpoint+"/file/"+resp.id+"/timeseries"
resp.stats_href = apiEndpoint+"/file/"+resp.id+"/stats"
resp.link = domainURL()+"/u/"+resp.id
if (resp.description === undefined) {
resp.description = ""
@@ -245,6 +246,7 @@ function fileFromSkyNet(resp) {
file.download_href = "https://skydrain.net/file/"+resp.id+"?attachment=1"
file.view_href = ""
file.timeseries_href = ""
file.stats_href = ""
file.link = domainURL()+"/s/"+resp.id
return file
}