|
|
@@ -29,9 +29,11 @@ func main() {
|
|
|
defer gateway.DestroyGateway(gw)
|
|
|
|
|
|
gw.BindPassThrough(prefixRootBinder, &gateway.PassThrough{
|
|
|
- HttpMethod: http.MethodGet,
|
|
|
- RelativePath: "/version",
|
|
|
- ToUrl: "http://localhost:31000/example/api/version",
|
|
|
+ HttpMethod: http.MethodGet,
|
|
|
+ SimplePassThrough: &gateway.SimplePassThrough{
|
|
|
+ RelativePath: "/version",
|
|
|
+ ToUrl: "http://localhost:31000/example/api/version",
|
|
|
+ },
|
|
|
})
|
|
|
|
|
|
go func() {
|