17 lines
312 B
Go
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)
|
|
}
|