[skip ci] gofmt
This commit is contained in:
parent
09c4d66797
commit
f33dc4d866
|
@ -1,12 +1,12 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
"github.com/gotify/go-api-client/auth"
|
||||
|
@ -37,7 +37,7 @@ type Labels struct {
|
|||
func main() {
|
||||
gotifyURL := os.Getenv("GOTIFY_URL")
|
||||
|
||||
http.HandleFunc("/alert", func (w http.ResponseWriter, r *http.Request) {
|
||||
http.HandleFunc("/alert", func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != "POST" {
|
||||
http.Error(w, "405 Method not allowed", http.StatusMethodNotAllowed)
|
||||
return
|
||||
|
|
Reference in a new issue