Add version to controller API

This commit is contained in:
Soam Vasani
2016-11-07 14:33:00 -08:00
parent 164c1b3c89
commit 3533c158d6
+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, "Fission API")
fmt.Fprintf(w, "{message: \"Fission API\", version: \"0.1.0\"}\n")
}
func (api *API) Serve(port int) {