mirror of
https://github.com/maputnik/editor.git
synced 2026-01-07 14:00:01 +00:00
16 lines
280 B
Go
16 lines
280 B
Go
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",
|
|
})
|
|
}
|