try and create a crew record for the hold owner

This commit is contained in:
Evan Jarrett
2025-10-14 21:41:14 -05:00
parent c0f1011ed6
commit 12935490d4
3 changed files with 60 additions and 6 deletions
+16
View File
@@ -48,6 +48,11 @@ func main() {
log.Fatalf("Failed to initialize embedded PDS: %v", err)
}
// Bootstrap PDS with hold owner as first crew member
if err := holdPDS.Bootstrap(ctx, cfg.Registration.OwnerDID); err != nil {
log.Fatalf("Failed to bootstrap PDS: %v", err)
}
// Create blob store adapter
blobStore := pds.NewHoldServiceBlobStore(service, holdDID)
@@ -59,6 +64,17 @@ func main() {
// Setup HTTP routes
mux := http.NewServeMux()
// Root page
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/" {
w.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(w, "This is a hold server. More info at https://atcr.io")
return
}
http.NotFound(w, r)
})
mux.HandleFunc("/health", service.HealthHandler)
mux.HandleFunc("/register", service.HandleRegister)
mux.HandleFunc("/presigned-url", service.HandlePresignedURL)