#10 /api/v1/coils content-type to application/json
This commit is contained in:
parent
c45af6d1dd
commit
a3bb7aa22e
|
@ -14,6 +14,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func coils(w http.ResponseWriter, r *http.Request) {
|
func coils(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(pingvin.Coils)
|
json.NewEncoder(w).Encode(pingvin.Coils)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue