Signing works
This commit is contained in:
parent
d272fa90b4
commit
da2a89010c
19 changed files with 348 additions and 100 deletions
16
web/shared/linstromUrlType.go
Normal file
16
web/shared/linstromUrlType.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package webshared
|
||||
|
||||
import "strings"
|
||||
|
||||
// TODO: Define linstrom uri type
|
||||
|
||||
var hardcodedUrls = map[string]string{
|
||||
"default-media": "/default-image",
|
||||
}
|
||||
|
||||
func EnsurePublicUrl(rawUrl string) string {
|
||||
if !strings.HasPrefix(rawUrl, "linstrom://") {
|
||||
return rawUrl
|
||||
}
|
||||
return strings.Replace(rawUrl, "linstrom://", "/", 1)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue