mirror of
https://github.com/maputnik/editor.git
synced 2026-07-15 02:17:27 +00:00
Add server and bindata packaging
This commit is contained in:
@@ -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",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user