2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2021-11-12 05:09:17 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var oncePlaces sync.Once
|
|
|
|
|
|
|
|
func initPlaces() {
|
|
|
|
services.Places = photoprism.NewPlaces(Config())
|
|
|
|
}
|
|
|
|
|
|
|
|
func Places() *photoprism.Places {
|
|
|
|
oncePlaces.Do(initPlaces)
|
|
|
|
|
|
|
|
return services.Places
|
|
|
|
}
|