mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
27 lines
655 B
Go
27 lines
655 B
Go
package percona
|
|
|
|
import (
|
|
"github.com/go-chi/chi/v5"
|
|
|
|
"github.com/TheTNB/panel/pkg/apploader"
|
|
"github.com/TheTNB/panel/pkg/types"
|
|
)
|
|
|
|
func init() {
|
|
apploader.Register(&types.App{
|
|
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)
|
|
},
|
|
})
|
|
}
|