node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
package local
import "fmt"
// FormatAssetUrl formats the asset URL for the given mediaId and filename.
//
// FormatAssetUrl(123, "cover.jpg") -> "{{LOCAL_ASSETS}}/123/cover.jpg"
func FormatAssetUrl(mediaId int, filename string) *string {
// {{LOCAL_ASSETS}} should be replaced in the client with the actual URL
// e.g. http://<hostname>/local_assets/123/cover.jpg
a := fmt.Sprintf("{{LOCAL_ASSETS}}/%d/%s", mediaId, filename)
return &a
}