feat: add command and stop endpoints

This commit is contained in:
Saw-jan
2024-07-09 11:48:03 +05:45
parent 6826e360f1
commit 6e2ccefa51
3 changed files with 123 additions and 30 deletions
+2
View File
@@ -24,6 +24,8 @@ func Start(port string) {
mux.HandleFunc("/", http.NotFound)
mux.HandleFunc("/config", handlers.SetEnvHandler)
mux.HandleFunc("/rollback", handlers.RollbackHandler)
mux.HandleFunc("/command", handlers.CommandHandler)
mux.HandleFunc("/stop", handlers.StopOcisHandler)
httpServer.Handler = mux