Files

15 lines
358 B
Go

package cli
import (
"errors"
"fmt"
"net/http"
)
func (h *abraHandler) handleUndeployApp(w http.ResponseWriter, r *http.Request, appName string) {
output, err := h.cmd.Run("abra", "app", "undeploy", appName, "-n")
if err != nil {
InternalServerError(w, errors.New(fmt.Sprintf("Error: %s", string(output))))
return
}
w.WriteHeader(http.StatusOK)
}