mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-26 14:28:46 +00:00
fix: return full url of assets in admin and mgmt api (#3157)
* fix: return full url of assets in admin and mgmt api * remove asset loading over asset service * remove unused code Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
co-authored by
Max Peintner
parent
31bdd3f431
commit
ab62f2d79d
@@ -37,3 +37,10 @@ type AssetInfo struct {
|
||||
func GetHumanAvatarAssetPath(userID string) string {
|
||||
return UsersAssetPath + "/" + userID + AvatarAssetPath
|
||||
}
|
||||
|
||||
func AssetURL(prefix, resourceOwner, key string) string {
|
||||
if prefix == "" || resourceOwner == "" || key == "" {
|
||||
return ""
|
||||
}
|
||||
return prefix + resourceOwner + "/" + key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user