Serve brand assets as static files via /api/files/v1/static instead of S3

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-06-09 16:43:59 +02:00
parent c6c35a542e
commit 60435f277b
27 changed files with 125 additions and 241 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
pkg/brand/assets/probo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

25
pkg/brand/brand.go Normal file
View File

@@ -0,0 +1,25 @@
package brand
import (
"embed"
"io/fs"
)
var (
//go:embed assets
staticAssets embed.FS
Assets fs.FS
DefaultPoweredByLogoPath string = "/api/files/v1/static/probo-gray-small.png"
DefaultSenderCompanyLogoPath string = "/api/files/v1/static/probo.png"
)
func init() {
var err error
Assets, err = fs.Sub(staticAssets, "assets")
if err != nil {
panic(err)
}
}