mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 20:57:19 +08:00
24 lines
527 B
Go
24 lines
527 B
Go
package pureftpd
|
|
|
|
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: "pureftpd",
|
|
Route: func(r chi.Router) {
|
|
service := NewService()
|
|
r.Get("/users", service.List)
|
|
r.Post("/users", service.Create)
|
|
r.Delete("/users/{username}", service.Delete)
|
|
r.Post("/users/{username}/password", service.ChangePassword)
|
|
r.Get("/port", service.GetPort)
|
|
r.Post("/port", service.UpdatePort)
|
|
},
|
|
})
|
|
}
|