main parses incoming slack event
parent
02fecb7eb2
commit
82fc7526d0
8
main.go
8
main.go
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue