mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
fix: percona插件加载
This commit is contained in:
@@ -4,7 +4,12 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
_ "github.com/TheTNB/panel/internal/apps/fail2ban"
|
||||
_ "github.com/TheTNB/panel/internal/apps/frp"
|
||||
_ "github.com/TheTNB/panel/internal/apps/gitea"
|
||||
_ "github.com/TheTNB/panel/internal/apps/openresty"
|
||||
_ "github.com/TheTNB/panel/internal/apps/percona"
|
||||
_ "github.com/TheTNB/panel/internal/apps/php"
|
||||
_ "github.com/TheTNB/panel/internal/apps/phpmyadmin"
|
||||
"github.com/TheTNB/panel/pkg/apploader"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,15 +12,15 @@ func init() {
|
||||
Slug: "percona",
|
||||
Route: func(r chi.Router) {
|
||||
service := NewService()
|
||||
r.Get("load", service.Load)
|
||||
r.Get("config", service.GetConfig)
|
||||
r.Post("config", service.UpdateConfig)
|
||||
r.Get("errorLog", service.ErrorLog)
|
||||
r.Post("clearErrorLog", service.ClearErrorLog)
|
||||
r.Get("slowLog", service.SlowLog)
|
||||
r.Post("clearSlowLog", service.ClearSlowLog)
|
||||
r.Get("rootPassword", service.GetRootPassword)
|
||||
r.Post("rootPassword", service.SetRootPassword)
|
||||
r.Get("/load", service.Load)
|
||||
r.Get("/config", service.GetConfig)
|
||||
r.Post("/config", service.UpdateConfig)
|
||||
r.Get("/errorLog", service.ErrorLog)
|
||||
r.Post("/clearErrorLog", service.ClearErrorLog)
|
||||
r.Get("/slowLog", service.SlowLog)
|
||||
r.Post("/clearSlowLog", service.ClearSlowLog)
|
||||
r.Get("/rootPassword", service.GetRootPassword)
|
||||
r.Post("/rootPassword", service.SetRootPassword)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user