no redirect
This commit is contained in:
parent
726fe425f4
commit
78a54cc4ac
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ func (r *router) Set() *gin.Engine {
|
||||||
c.Status(http.StatusForbidden)
|
c.Status(http.StatusForbidden)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
r.engine.RedirectTrailingSlash = false
|
||||||
|
|
||||||
//version
|
//version
|
||||||
r.engine.GET("/version", func(c *gin.Context) { c.JSON(200, gin.H{"version": "2.0.0-alpha"}) })
|
r.engine.GET("/version", func(c *gin.Context) { c.JSON(200, gin.H{"version": "2.0.0-alpha"}) })
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue