mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 19:37:18 +08:00
22 lines
491 B
Go
22 lines
491 B
Go
package podman
|
|
|
|
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: "podman",
|
|
Route: func(r chi.Router) {
|
|
service := NewService()
|
|
r.Get("/registryConfig", service.GetRegistryConfig)
|
|
r.Post("/registryConfig", service.UpdateRegistryConfig)
|
|
r.Get("/storageConfig", service.GetStorageConfig)
|
|
r.Post("/storageConfig", service.UpdateStorageConfig)
|
|
},
|
|
})
|
|
}
|