diff --git a/main.go b/main.go index bbd1d55..a996087 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,13 @@ func _newHandlerPostAPIV1EventsSlack(cfg Config) http.HandlerFunc { return } - log.Printf("slack event: %s", b) + m, err := ParseSlack(b) + if err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + log.Printf("message: %+v", m) http.Error(w, "not impl", http.StatusNotImplemented) } }