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-04-11 16:57:29 -04:00

15 lines
268 B
Go

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