@@ -141,7 +141,7 @@ func main() {
141
141
service := rpc.NewHTTPService ()
142
142
service.AddFunction (" hello" , hello)
143
143
router := gin.Default ()
144
- router.Any (" /hello " , func (c *gin.Context ) {
144
+ router.Any (" /path " , func (c *gin.Context ) {
145
145
service.ServeHTTP (c.Writer , c.Request )
146
146
})
147
147
router.Run (" :8080" )
@@ -166,7 +166,7 @@ func main() {
166
166
service := rpc.NewHTTPService ()
167
167
service.AddFunction (" hello" , hello)
168
168
e := echo.New ()
169
- e.Any (" /hello " , echo.WrapHandler (service))
169
+ e.Any (" /path " , echo.WrapHandler (service))
170
170
e.Start (" :8080" )
171
171
}
172
172
```
@@ -188,7 +188,7 @@ func hello(name string) string {
188
188
func main () {
189
189
service := rpc.NewHTTPService ()
190
190
service.AddFunction (" hello" , hello)
191
- beego.Handler (" /hello " , service)
191
+ beego.Handler (" /path " , service)
192
192
beego.Run ()
193
193
}
194
194
```
@@ -210,7 +210,7 @@ func hello(name string) string {
210
210
func main () {
211
211
service := rpc.NewFastHTTPService ()
212
212
service.AddFunction (" hello" , hello)
213
- iris.Any (" /hello " , func (c *iris.Context ) {
213
+ iris.Any (" /path " , func (c *iris.Context ) {
214
214
service.ServeFastHTTP (c.RequestCtx )
215
215
})
216
216
iris.Listen (" :8080" )
0 commit comments