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