2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2020-12-04 19:51:51 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var oncePhotos sync.Once
|
|
|
|
|
|
|
|
func initPhotos() {
|
|
|
|
services.Photos = photoprism.NewPhotos()
|
|
|
|
}
|
|
|
|
|
|
|
|
func Photos() *photoprism.Photos {
|
|
|
|
oncePhotos.Do(initPhotos)
|
|
|
|
|
|
|
|
return services.Photos
|
|
|
|
}
|