diff --git a/plugins/webapi/message/plugin.go b/plugins/webapi/message/plugin.go index 509a1dde5ce542856de701f55ffd8c398e606c81..2e8ae6e9196458d4be2906d04eb79650ba49dd4f 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"`