diff --git a/route/route.go b/route/route.go index e213df1..11b4b82 100644 --- a/route/route.go +++ b/route/route.go @@ -155,11 +155,6 @@ func Route(db *gorm.DB, mux *http.ServeMux) { })) mux.HandleFunc("/server-down-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) { - if r.Method != http.MethodGet { - http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) - return - } - sessionID := helper.GenerateSessionID() module := "SERVER DOWN NOTIFICATION" log.Printf("%+v %+v request %+v", sessionID, module, nil) @@ -192,11 +187,6 @@ func Route(db *gorm.DB, mux *http.ServeMux) { })) mux.HandleFunc("/high-memory-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) { - if r.Method != http.MethodGet { - http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) - return - } - sessionID := helper.GenerateSessionID() module := "HIGH MEMORY USAGE NOTIFICATION" log.Printf("%+v %+v request %+v", sessionID, module, nil)