portfolio/api/handler/mainHandler.go

12 lines
231 B
Go
Raw Normal View History

2024-03-13 13:28:06 +01:00
package handler
import "net/http"
func CatchAllHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusGone)
_, err := w.Write([]byte("Bad endpoint"))
if err != nil {
InternalServerErrorHandler(w, r)
}
}