mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 11:40:36 +03:00
21 lines
331 B
Go
21 lines
331 B
Go
// +build !embed
|
|
|
|
package assets
|
|
|
|
import (
|
|
"net/http"
|
|
"sync"
|
|
|
|
"github.com/deluan/navidrome/consts"
|
|
"github.com/deluan/navidrome/log"
|
|
)
|
|
|
|
var once sync.Once
|
|
|
|
func AssetFile() http.FileSystem {
|
|
once.Do(func() {
|
|
log.Warn("Using external assets from " + consts.UIAssetsLocalPath)
|
|
})
|
|
return http.Dir(consts.UIAssetsLocalPath)
|
|
}
|