2024-05-16 17:59:21 +02:00
|
|
|
package handlers
|
2024-03-13 13:28:06 +01:00
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
|
|
func CatchAllHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
w.WriteHeader(http.StatusGone)
|
|
|
|
|
_, err := w.Write([]byte("Bad endpoint"))
|
|
|
|
|
if err != nil {
|
2024-03-13 15:54:09 +01:00
|
|
|
InternalServerErrorHandler(w)
|
2024-03-13 13:28:06 +01:00
|
|
|
}
|
|
|
|
|
}
|