5ec90a5fff
Signed-off-by: Michael Mayer <michael@photoprism.app>
10 lines
241 B
Go
10 lines
241 B
Go
package viewer
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// DownloadUrl returns a download url based on hash, api uri, and download token.
|
|
func DownloadUrl(h, apiUri, downloadToken string) string {
|
|
return fmt.Sprintf("%s/dl/%s?t=%s", apiUri, h, downloadToken)
|
|
}
|