2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

fix: percona插件加载

This commit is contained in:
耗子
2024-09-27 22:53:06 +08:00
parent 9a295241c3
commit 3271557561
2 changed files with 14 additions and 9 deletions

View File

@@ -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"
)

View File

@@ -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)
},
})
}