Merge branch 'master' of git.sneak.cloud:sneak/merp
This commit is contained in:
commit
aedf25f17d
1
merp.go
1
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{
|
||||
|
|
Loading…
Reference in New Issue