[#6019] fixed README example

This commit is contained in:
Gani Georgiev 2024-12-04 11:06:00 +02:00
parent 376627b4cc
commit b0276ad605
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ Here is a minimal example:
app.OnServe().BindFunc(func(se *core.ServeEvent) error {
// 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!")
})