1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add RouterMiddlewares to iris guide

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-10-19 01:39:32 +03:00
parent 1efbcabfce
commit 45aa45237c
2 changed files with 14 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import (
// It accepts the controller ptr to a struct value,
// the gRPCServer itself, and a strict option which is explained below.
//
// The differences by a common controller are:
// The differences between an GRPC-based controller and a common one are:
// HTTP verb: only POST (Party.AllowMethods can be used for more),
// method parsing is disabled: path is the function name as it is,
// if 'strictMode' option is true then this controller will only serve gRPC-based clients
@@ -71,6 +71,5 @@ func (g GRPC) Apply(c *ControllerActivator) {
}
route.Description += " " + bckp // e.g. "gRPC controller"
}
}
}