Fix: Add support for variant in API

This commit is contained in:
Knut Ahlers 2020-11-23 11:42:42 +01:00
parent 79fd31ec4e
commit d1932e2fbd
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

1
api.go
View file

@ -102,6 +102,7 @@ func handleCustomAlert(w http.ResponseWriter, r *http.Request) {
Sound *string `json:"sound"`
Text string `json:"text"`
Title string `json:"title"`
Variant *string `json:"variant"`
}
if err := json.NewDecoder(r.Body).Decode(&alert); err != nil {