This commit is contained in:
shoopea
2023-07-31 20:47:24 +02:00
parent f6fdd83a23
commit c72f903e31
3 changed files with 12 additions and 6 deletions

View File

@@ -67,6 +67,13 @@ func (a *AdminConfig) Run() {
})
})
r.GET("/run", func(c *gin.Context) {
cfg.Run()
c.JSON(http.StatusOK, gin.H{
"message": "done",
})
})
srv := &http.Server{
Addr: a.Addr,
Handler: r,