1
0
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:
Gerasimos (Makis) Maropoulos
2018-11-11 17:27:31 +02:00
parent 70610af6fd
commit 6886fd98c8
3 changed files with 98 additions and 12 deletions

View File

@@ -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))