mirror of
https://github.com/KevinMidboe/planetposen-images.git
synced 2025-10-29 13:20:11 +00:00
Also return google bucket url in response
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
package util
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// ImageURL creates imageURL from hostname and image name
|
||||
func ImageURL(hostname, name string) string {
|
||||
return fmt.Sprintf("https://%s/api/v1/images/%s", hostname, name)
|
||||
}
|
||||
|
||||
// ImageRemoteURL creates imageURL to bucket file
|
||||
func ImageRemoteURL(bucketname string, path string) string {
|
||||
return fmt.Sprintf("https://storage.googleapis.com/%s/%s", bucketname, path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user