main parses incoming slack event
This commit is contained in:
8
main.go
8
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user