Files
play-with-docker/handlers/get_instance_images.go
2017-09-12 17:02:27 -03:00

17 lines
312 B
Go

package handlers
import (
"encoding/json"
"net/http"
"github.com/play-with-docker/play-with-docker/config"
)
func GetInstanceImages(rw http.ResponseWriter, req *http.Request) {
instanceImages := []string{
config.GetDindImageName(),
"franela/dind:dev",
}
json.NewEncoder(rw).Encode(instanceImages)
}