site and webhooks packages stubbed

This commit is contained in:
2025-12-23 22:35:38 -07:00
commit cdbc08dea2
16 changed files with 527 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package etsy
import (
"fmt"
"net/http"
)
func NewWebhookHandler() http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.Write([]byte(fmt.Sprintf("received etsy webhook call: %s %s\n", r.Method, r.URL)))
})
return mux
}