16 lines
333 B
Go
16 lines
333 B
Go
package cli
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func (h *abraHandler) handleRemoveApp(w http.ResponseWriter, r *http.Request, appName string) {
|
|
output, err := h.cmd.Run("abra", "app", "remove", appName, "-n")
|
|
if err != nil {
|
|
InternalServerError(w, fmt.Errorf("Error: %s", string(output)))
|
|
return
|
|
}
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|