code cleanup, starting and stopping

This commit is contained in:
Zoe
2024-12-04 02:33:21 -06:00
parent a51cc0e779
commit 1bb4377a89
8 changed files with 469 additions and 118 deletions

View File

@@ -12,6 +12,8 @@ func main() {
http.HandleFunc("POST /deploy", fluxServer.DeployHandler)
http.HandleFunc("DELETE /deploy/{name}", fluxServer.DeleteDeployHandler)
http.HandleFunc("POST /start/{name}", fluxServer.StartDeployHandler)
http.HandleFunc("POST /stop/{name}", fluxServer.StopDeployHandler)
http.HandleFunc("GET /apps", fluxServer.ListAppsHandler)
log.Printf("Fluxd started on http://127.0.0.1:5647\n")