mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 05:47:17 +08:00
20 lines
343 B
Go
20 lines
343 B
Go
package frp
|
|
|
|
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: "frp",
|
|
Route: func(r chi.Router) {
|
|
service := NewService()
|
|
r.Get("/config", service.GetConfig)
|
|
r.Post("/config", service.UpdateConfig)
|
|
},
|
|
})
|
|
}
|