mirror of
https://github.com/Luzifer/twitch-manager.git
synced 2024-12-21 04:11:17 +00:00
Fix: Add support for variant in API
This commit is contained in:
parent
79fd31ec4e
commit
d1932e2fbd
1 changed files with 4 additions and 3 deletions
1
api.go
1
api.go
|
@ -102,6 +102,7 @@ func handleCustomAlert(w http.ResponseWriter, r *http.Request) {
|
||||||
Sound *string `json:"sound"`
|
Sound *string `json:"sound"`
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
|
Variant *string `json:"variant"`
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := json.NewDecoder(r.Body).Decode(&alert); err != nil {
|
if err := json.NewDecoder(r.Body).Decode(&alert); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue