Set "Content-Type: application/json"

This commit is contained in:
Chandler Swift 2025-02-12 22:32:28 -06:00
parent ee147fea3c
commit 96f1e3bef9
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -57,6 +57,7 @@ func main() {
})
http.HandleFunc("GET /api/sidewalks", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(sidewalks)
})