2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 22:07:16 +08:00
Files
panel/internal/apps/podman/init.go
2024-09-28 02:43:00 +08:00

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)
},
})
}