mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
complete the versioning/README.md and add AllowMethods like the normal Party, version-specific middlewares are not needed because the end-developer should declare a middleware with manual matching of version using versioning.Match(ctx, version) bool instead
Former-commit-id: 4f4c23dd7c043d5ab735070ae4d59ea84e3af2e0
This commit is contained in:
@@ -86,7 +86,7 @@ func TestNewGroup(t *testing.T) {
|
||||
userAPIV2.Post("/", sendHandler(v2Response))
|
||||
userAPIV2.Put("/other", sendHandler(v2Response))
|
||||
|
||||
// versioning.Concat(userAPIV10, userAPIV2)
|
||||
// versioning.Concat(userAPIV10, userAPIV2).
|
||||
// NotFound(func(ctx iris.Context) {
|
||||
// ctx.StatusCode(iris.StatusNotFound)
|
||||
// ctx.Writef("unknown version %s", versioning.GetVersion(ctx))
|
||||
|
||||
Reference in New Issue
Block a user