18 lines
344 B
Go
18 lines
344 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:overlay2-dev",
|
|
"franela/ucp:2.4.1",
|
|
}
|
|
json.NewEncoder(rw).Encode(instanceImages)
|
|
}
|