[#6019] fixed README example
This commit is contained in:
parent
376627b4cc
commit
b0276ad605
|
@ -65,7 +65,7 @@ Here is a minimal example:
|
||||||
|
|
||||||
app.OnServe().BindFunc(func(se *core.ServeEvent) error {
|
app.OnServe().BindFunc(func(se *core.ServeEvent) error {
|
||||||
// registers new "GET /hello" route
|
// registers new "GET /hello" route
|
||||||
se.Router.Get("/hello", func(re *core.RequestEvent) error {
|
se.Router.GET("/hello", func(re *core.RequestEvent) error {
|
||||||
return re.String(200, "Hello world!")
|
return re.String(200, "Hello world!")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue