app activate/deactivate

This commit is contained in:
shoopea
2025-12-28 16:15:25 +01:00
parent 1890050a30
commit 6a0c8006d6
4 changed files with 107 additions and 24 deletions

View File

@@ -65,6 +65,9 @@ func (a *AdminConfig) Run() {
r.GET("/app/add/:app", ApiAppAdd)
r.GET("/app/del/:app", ApiAppDel)
r.GET("/app/activate/:app", ApiAppActivate)
r.GET("/app/deactivate/:app", ApiAppDeactivate)
srv := &http.Server{
Addr: a.Addr,
Handler: r,