commit 79ae8024a95c2f444f84fca07d004f010a9d0818
Author: Wim <wim@42.be>
Date: Mon Jun 05 23:08:36 2017 +0000
diff --git a/bridge/api/api.go b/bridge/api/api.go
index 4870ee6..d53fc3b 100644
--- a/bridge/api/api.go
+++ b/bridge/api/api.go
@@ -839 +837 @@ func (b *Api) handlePostMessage(c echo.Context) error {
func (b *Api) handleMessages(c echo.Context) error {
b.Lock()
defer b.Unlock()
- for _, msg := range b.Messages.Values() {
- c.JSONPretty(http.StatusOK, msg, " ")
- }
+ c.JSONPretty(http.StatusOK, b.Messages.Values(), " ")
b.Messages = ring.Ring{}
return nil
}