photoprism/internal/viewer/url.go

11 lines
241 B
Go
Raw Normal View History

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)
}