Merge branch 'master' of git.sneak.cloud:sneak/merp

This commit is contained in:
Jeffrey Paul 2019-11-08 22:14:33 -08:00
commit aedf25f17d
1 changed files with 1 additions and 0 deletions

View File

@ -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{