Add server and bindata packaging

This commit is contained in:
lukasmartinelli
2016-09-27 20:27:08 +02:00
parent 45eb3a01e6
commit 66e3ce8743
3 changed files with 68 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import (
"encoding/json"
"net/http"
)
// Return all current deployments
func foo(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
encoder := json.NewEncoder(w)
encoder.Encode(map[string]string{
"foo": "bar",
})
}