publish raw events
This commit is contained in:
parent
1ce14e7d36
commit
56b17b2b0b
2
main.go
2
main.go
|
@ -77,7 +77,7 @@ func setupRouter() *gin.Engine {
|
||||||
}
|
}
|
||||||
|
|
||||||
jsonData, _ := json.Marshal(data)
|
jsonData, _ := json.Marshal(data)
|
||||||
nc.Publish("events", []byte(string(jsonData)))
|
nc.Publish("events", []byte(jsonData))
|
||||||
|
|
||||||
c.JSON(http.StatusOK, gin.H{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"ok": 1,
|
"ok": 1,
|
||||||
|
|
Loading…
Reference in New Issue