Add self-service photo and pronunciation upload with archiving and change log

This commit is contained in:
Ian Gulliver
2026-08-16 08:01:34 -07:00
parent 272ce380bb
commit 54a5b4615f
12 changed files with 645 additions and 34 deletions
+3 -1
View File
@@ -89,7 +89,8 @@ func main() {
authn := auth.New(clientID(), sessionKey())
serverKey := mapsKey("GOOGLE_MAPS_SERVER_KEY", "creds/geocoding.key")
browserKey := mapsKey("GOOGLE_MAPS_BROWSER_KEY", "creds/maps.key")
cache, err := directory.NewCache(directorySource(), geocode.New(serverKey))
source := directorySource()
cache, err := directory.NewCache(source, geocode.New(serverKey))
if err != nil {
log.Fatalf("[ERROR] load directory data: %v", err)
}
@@ -102,6 +103,7 @@ func main() {
log.Fatalf("[ERROR] blob store: %v", err)
}
blob.Register(mux, store)
directory.RegisterUpload(mux, cache, source.(*data.Sheet), store)
}
mux.Handle("GET /{$}", http.RedirectHandler("/people", http.StatusFound))
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static"))))