mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-26 23:10:25 +01:00
[#6019] fixed README example
This commit is contained in:
1 parent
376627b4cc
commit
b0276ad605
1 file changed
+1
-1
@@ -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!")
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user