Fix gin context abort, it does not take args anymore

This commit is contained in:
Dan Sosedoff 2015-02-09 01:32:29 -06:00
parent c64d58cee9
commit 717bc0d919

2
api.go
View File

@ -96,7 +96,7 @@ func ApiMiddleware() gin.HandlerFunc {
c.Next() c.Next()
} else { } else {
c.JSON(400, Error{"Not connected"}) c.JSON(400, Error{"Not connected"})
c.Abort(400) c.Abort()
} }
return return