package environments

import (
	"fmt"
	"net/http"

	"github.com/zenazn/goji/web"
)

func Create(c web.C, w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "Ima go create a new env")
}

func Show(c web.C, w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "This env's name is "+c.URLParams["name"])
}

func Update(c web.C, w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "Ima go update env "+c.URLParams["name"])
}

func Destroy(c web.C, w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "Ima go delete env "+c.URLParams["name"])
}

func Refresh(c web.C, w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "Ima go refresh "+c.URLParams["name"])
}
