[ci skip] update readme.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-04-13 11:43:07 +08:00
parent 9bc2df6baa
commit dab1d73149
2 changed files with 69 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func pushHandler(c *gin.Context) {
}
if len(form.Notifications) == 0 {
msg = "Notification field is empty."
msg = "Notifications field is empty."
LogAccess.Debug(msg)
AbortWithError(c, http.StatusBadRequest, msg)
return
@@ -51,7 +51,7 @@ func pushHandler(c *gin.Context) {
go SendNotification(form)
c.JSON(http.StatusOK, gin.H{
"text": "Welcome to notification server.",
"success": "ok",
})
}