Fix incorrect JSON in version message

This commit is contained in:
Soam Vasani
2016-11-15 14:33:31 -08:00
parent 2eceb8263d
commit 2a9f229c17
+1 -1
View File
@@ -51,7 +51,7 @@ func (api *API) respondWithError(w http.ResponseWriter, err error) {
}
func (api *API) HomeHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "{message: \"Fission API\", version: \"0.1.0\"}\n")
fmt.Fprintf(w, "{\"message\": \"Fission API\", \"version\": \"0.1.0\"}\n")
}
func (api *API) Serve(port int) {