From 6412149907e24304b104b4b81acc6affffd44b2c Mon Sep 17 00:00:00 2001 From: Angelo Capossele <angelocapossele@gmail.com> Date: Thu, 9 Apr 2020 16:38:19 +0100 Subject: [PATCH] Update plugins/webapi/message/plugin.go Co-Authored-By: Luca Moser <moser.luca@gmail.com> --- plugins/webapi/message/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/webapi/message/plugin.go b/plugins/webapi/message/plugin.go index 509a1dde..2e8ae6e9 100644 --- a/plugins/webapi/message/plugin.go +++ b/plugins/webapi/message/plugin.go @@ -64,6 +64,7 @@ func findMessageById(c echo.Context) error { return c.JSON(http.StatusOK, Response{Messages: result}) } +// Response is the HTTP response containing the queried messages. type Response struct { Messages []Message `json:"messages,omitempty"` Error string `json:"error,omitempty"` -- GitLab