Skip to content

Commit 594df38

Browse files
committed
Update README
1 parent ee8db7a commit 594df38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func main() {
141141
service := rpc.NewHTTPService()
142142
service.AddFunction("hello", hello)
143143
router := gin.Default()
144-
router.Any("/hello", func(c *gin.Context) {
144+
router.Any("/path", func(c *gin.Context) {
145145
service.ServeHTTP(c.Writer, c.Request)
146146
})
147147
router.Run(":8080")
@@ -166,7 +166,7 @@ func main() {
166166
service := rpc.NewHTTPService()
167167
service.AddFunction("hello", hello)
168168
e := echo.New()
169-
e.Any("/hello", echo.WrapHandler(service))
169+
e.Any("/path", echo.WrapHandler(service))
170170
e.Start(":8080")
171171
}
172172
```
@@ -188,7 +188,7 @@ func hello(name string) string {
188188
func main() {
189189
service := rpc.NewHTTPService()
190190
service.AddFunction("hello", hello)
191-
beego.Handler("/hello", service)
191+
beego.Handler("/path", service)
192192
beego.Run()
193193
}
194194
```
@@ -210,7 +210,7 @@ func hello(name string) string {
210210
func main() {
211211
service := rpc.NewFastHTTPService()
212212
service.AddFunction("hello", hello)
213-
iris.Any("/hello", func(c *iris.Context) {
213+
iris.Any("/path", func(c *iris.Context) {
214214
service.ServeFastHTTP(c.RequestCtx)
215215
})
216216
iris.Listen(":8080")

0 commit comments

Comments
 (0)