From 7ecf3ef52b5f36ec9e52bf100fa958f5cb0b37b5 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Tue, 20 Oct 2020 22:04:09 +0200 Subject: Add comment dialog --- application_router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application_router.go') diff --git a/application_router.go b/application_router.go index 4048dc5..21758c9 100644 --- a/application_router.go +++ b/application_router.go @@ -273,7 +273,7 @@ func CreateApplicationRouter(applicationContext *ApplicationContext, result = applicationContext.ConnectionsController.SetMarked(c, id, false) case "comment": var comment struct { - Comment string `json:"comment" binding:"required"` + Comment string `json:"comment"` } if err := c.ShouldBindJSON(&comment); err != nil { badRequest(c, err) -- cgit v1.2.3-70-g09d2