diff options
Diffstat (limited to 'bridge/api')
-rw-r--r-- | bridge/api/api.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bridge/api/api.go b/bridge/api/api.go index 4870ee6a..d53fc3b4 100644 --- a/bridge/api/api.go +++ b/bridge/api/api.go @@ -83,9 +83,7 @@ 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 } |