Added Toggle for Start

This commit is contained in:
2022-05-24 21:44:42 -05:00
parent 14a042ce8c
commit 2ac4037965
4 changed files with 41 additions and 17 deletions

View File

@@ -21,9 +21,12 @@ func main() {
r := gin.Default()
r.GET("/", index)
r.GET("/api/update", update)
r.GET("/api/status", isRunning)
r.GET("/update", update)
r.GET("/start", startServer)
r.GET("/stop", stopServer)
r.GET("/backup.zip", backup)
r.POST("/configure", configure)
srv := &http.Server{