forked from an/flokati
webhooks should work now
This commit is contained in:
parent
827167fa46
commit
66c4eecfda
|
@ -25,7 +25,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func webhookRun() {
|
func webhookRun() {
|
||||||
scanner := bufio.NewScanner(*webhook_token)
|
scanner := bufio.NewScanner(*webhookToken)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
tok := strings.Split(scanner.Text(), " ")
|
tok := strings.Split(scanner.Text(), " ")
|
||||||
http.HandleFunc("/webhook/"+tok[0], webhookHandleHTTP)
|
http.HandleFunc("/webhook/"+tok[0], webhookHandleHTTP)
|
||||||
|
|
Loading…
Reference in New Issue