#10 /api/v1/coils content-type to application/json

This commit is contained in:
Jarno Rankinen 2023-01-29 23:43:36 +02:00
parent c45af6d1dd
commit a3bb7aa22e
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ var (
)
func coils(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(pingvin.Coils)
}