mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Former-commit-id: 2b5ae1857a5815977507b6b8fc72dd0040d470ca
This commit is contained in:
@@ -57,10 +57,12 @@ func (g GRPC) Apply(c *ControllerActivator) {
|
||||
m := c.Type.Method(i)
|
||||
path := path.Join(g.ServiceName, m.Name)
|
||||
if route := c.Handle(http.MethodPost, path, m.Name, pre); route != nil {
|
||||
bckp := route.Description
|
||||
route.Description = "gRPC"
|
||||
if g.Strict {
|
||||
route.Description += "-only"
|
||||
}
|
||||
route.Description += " " + bckp // e.g. "gRPC controller"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user