diff --git a/merp.go b/merp.go index 63b59ea..3496c53 100644 --- a/merp.go +++ b/merp.go @@ -23,6 +23,7 @@ func decodeJSON(in []byte) (interface{}, error) { func (ms *Server) getLatestMerps() gin.HandlerFunc { return func(c *gin.Context) { thing := c.Param("thing") + if thing != "" { if ms.thingRegex.MatchString(thing) == false { c.JSON(http.StatusPreconditionFailed, gin.H{