Added Toggle for Start
This commit is contained in:
7
main.go
7
main.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user