This commit is contained in:
@@ -404,7 +404,7 @@ func (h *TimesHandler) GetDownloadUrl(ctx *gin.Context) {
|
||||
|
||||
// fetch download url from storage service
|
||||
// Build the full URL.
|
||||
fullURL, err := url.JoinPath(h.storageUrl, "/v1/file/", botData.FileID)
|
||||
fullURL, err := url.JoinPath(h.storageUrl, botData.FileID)
|
||||
if err != nil {
|
||||
statusCode := http.StatusInternalServerError
|
||||
errorMessage := "Error joining Url"
|
||||
|
||||
@@ -35,7 +35,7 @@ func NewApiCommand() *cli.Command {
|
||||
Name: "storage-host",
|
||||
Usage: "Host of storage",
|
||||
EnvVars: []string{"STORAGE_HOST"},
|
||||
Value: "http://storage-service:9000",
|
||||
Value: "http://storage-service:9000/v1/file/",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user