main parses incoming slack event

This commit is contained in:
Bel LaPointe
2024-04-12 09:15:16 -06:00
parent 02fecb7eb2
commit 82fc7526d0

View File

@@ -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)
}
}