mirror of
https://github.com/allankoechke/pocketbase.git
synced 2026-11-29 09:19:22 +00:00
set an id for the UI extensions hook to allow rebinding
This commit is contained in:
@@ -23,6 +23,7 @@ func bindUIExtensions(app core.App) {
|
||||
|
||||
app.OnServe().Bind(&hook.Handler[*core.ServeEvent]{
|
||||
Priority: 9999, // execute as latest as possible
|
||||
Id: "__pbUIExtensions__",
|
||||
Func: func(se *core.ServeEvent) error {
|
||||
uiGroup := se.Router.Group("/_").
|
||||
BindFunc(func(e *core.RequestEvent) error {
|
||||
|
||||
Reference in New Issue
Block a user