Files
inventory-plus-plus/internal/webhooks/tiktok/webhooks.go
T

18 lines
338 B
Go

package tiktok
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 tiktok webhook call: %s %s\n", r.Method, r.URL)))
})
return mux
}