Add changecolorintent

This commit is contained in:
Alex Ellis
2016-12-30 19:24:25 +00:00
parent 8734a3a5ac
commit 4573f14f65
10 changed files with 129 additions and 5 deletions

View File

@ -116,10 +116,9 @@ func makeProxy(metrics metrics.MetricOptions) http.HandlerFunc {
len(alexaService.Request.Intent.Name) > 0 {
fmt.Println("Alexa skill detected")
invokeService(w, r, metrics, alexaService.Request.Intent.Name, requestBody)
} else {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte("Provide an x-function header."))
w.Write([]byte("Provide an x-function header or a valid Alexa SDK request."))
}
}
}