diff --git a/internal/apps/init.go b/internal/apps/init.go index d3a6fda1..7c6c35b9 100644 --- a/internal/apps/init.go +++ b/internal/apps/init.go @@ -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" ) diff --git a/internal/apps/percona/init.go b/internal/apps/percona/init.go index 08947579..782b4f9b 100644 --- a/internal/apps/percona/init.go +++ b/internal/apps/percona/init.go @@ -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) }, }) }