Files
gluetun/internal/server/helpers.go

14 lines
321 B
Go
Raw Normal View History

2024-03-21 09:48:02 +00:00
package server
import (
"net/http"
)
func errMethodNotSupported(w http.ResponseWriter, method string) {
http.Error(w, "method "+method+" not supported", http.StatusBadRequest)
}
func errRouteNotSupported(w http.ResponseWriter, route string) {
http.Error(w, "route "+route+" not supported", http.StatusBadRequest)
}