more api call

This commit is contained in:
shoopea
2025-12-28 19:27:10 +01:00
parent c8715679f8
commit fd1c14831f
3 changed files with 61 additions and 4 deletions
+5
View File
@@ -62,12 +62,17 @@ func (a *AdminConfig) Run() {
r.GET("/config/:app", ApiConfigApp)
r.GET("/app/list", ApiAppList)
r.GET("/app/list/schedule/:schedule", ApiListSchedule)
r.GET("/app/add/:app", ApiAppAdd)
r.GET("/app/del/:app", ApiAppDel)
r.GET("/app/activate/:app", ApiAppActivate)
r.GET("/app/deactivate/:app", ApiAppDeactivate)
r.GET("/app/:app/source/list", ApiAppSourceList)
r.GET("/app/:app/source/add/:src", ApiAppSourceAdd)
r.GET("/app/:app/source/del/:src", ApiAppSourceDel)
srv := &http.Server{
Addr: a.Addr,
Handler: r,