mirror of
https://github.com/gin-gonic/gin.git
synced 2025-07-15 04:00:21 +08:00
chore(router): match method added to routergroup for multiple HTTP methods supporting (#3464)
This commit is contained in:
@ -186,6 +186,7 @@ func testRoutesInterface(t *testing.T, r IRoutes) {
|
||||
assert.Equal(t, r, r.PUT("/", handler))
|
||||
assert.Equal(t, r, r.OPTIONS("/", handler))
|
||||
assert.Equal(t, r, r.HEAD("/", handler))
|
||||
assert.Equal(t, r, r.Match([]string{http.MethodPut, http.MethodPatch}, "/match", handler))
|
||||
|
||||
assert.Equal(t, r, r.StaticFile("/file", "."))
|
||||
assert.Equal(t, r, r.StaticFileFS("/static2", ".", Dir(".", false)))
|
||||
|
Reference in New Issue
Block a user