1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00
docker-labs/handlers/get_instance_images.go
2017-05-08 15:35:42 -03:00

14 lines
276 B
Go

package handlers
import (
"encoding/json"
"net/http"
"github.com/play-with-docker/play-with-docker/services"
)
func GetInstanceImages(rw http.ResponseWriter, req *http.Request) {
instanceImages := services.InstanceImages()
json.NewEncoder(rw).Encode(instanceImages)
}