mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 15:31:24 +02:00
make POST and JSON as notification defaults
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package notif
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
@@ -45,3 +46,11 @@ func (base *ProviderBase) GetURL() string {
|
||||
func (base *ProviderBase) GetToken() string {
|
||||
return base.Token
|
||||
}
|
||||
|
||||
func (base *ProviderBase) GetMethod() string {
|
||||
return http.MethodPost
|
||||
}
|
||||
|
||||
func (base *ProviderBase) GetMIMEType() string {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user