浏览代码

Merge branch 'superalsrk-develop' into develop

Javier Provecho Fernandez 11 年之前
父节点
当前提交
bdf54b7fa2
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Godeps/Godeps.json
  2. 2 1
      README.md

+ 1 - 1
Godeps/Godeps.json

@@ -4,7 +4,7 @@
 	"Deps": [
 	"Deps": [
 		{
 		{
 			"ImportPath": "github.com/julienschmidt/httprouter",
 			"ImportPath": "github.com/julienschmidt/httprouter",
-			"Rev": "aeec11926f7a8fab580383810e1b1bbba99bdaa7"
+			"Rev": "00ce1c6a267162792c367acc43b1681a884e1872"
 		}
 		}
 	]
 	]
 }
 }

+ 2 - 1
README.md

@@ -134,7 +134,8 @@ func main() {
 		c.String(200, message)
 		c.String(200, message)
 	})
 	})
 
 
-	// However, this one will match /user/john and also /user/john/send
+	// However, this one will match /user/john/ and also /user/john/send
+	// If no other routers match /user/john, it will redirect to /user/join/
 	r.GET("/user/:name/*action", func(c *gin.Context) {
 	r.GET("/user/:name/*action", func(c *gin.Context) {
 		name := c.Params.ByName("name")
 		name := c.Params.ByName("name")
 		action := c.Params.ByName("action")
 		action := c.Params.ByName("action")