mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 17:24:16 +00:00
try and create a crew record for the hold owner
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user