1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 04:15:28 +02:00

feat(global): add container exec support

This commit is contained in:
Anthony Lapenna 2016-08-03 15:11:09 +12:00
parent b0ebbdf68c
commit 5878eed7ec
16 changed files with 438 additions and 75 deletions

View file

@ -20,6 +20,6 @@ func newConfig(swarm bool, labels pairList) Config {
}
// configurationHandler defines a handler function used to encode the configuration in JSON
func configurationHandler(w http.ResponseWriter, r *http.Request, c Config) {
json.NewEncoder(w).Encode(c)
func configurationHandler(w http.ResponseWriter, r *http.Request, c *Config) {
json.NewEncoder(w).Encode(*c)
}