main parses incoming slack event

main
Bel LaPointe 2024-04-12 09:15:16 -06:00
parent 02fecb7eb2
commit 82fc7526d0
1 changed files with 7 additions and 1 deletions

View File

@ -115,7 +115,13 @@ func _newHandlerPostAPIV1EventsSlack(cfg Config) http.HandlerFunc {
return 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) http.Error(w, "not impl", http.StatusNotImplemented)
} }
} }