mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:57:32 +08:00
14 lines
276 B
Go
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)
|
|
}
|