gohttpserver/internal/handlers/panic.go

15 lines
295 B
Go
Raw Normal View History

2022-11-28 03:59:20 +00:00
package handlers
import (
"net/http"
)
// CHANGEME you probably want to remove this,
// this is just a handler/route that throws a panic to test
// sentry events.
2022-11-28 03:59:20 +00:00
func (s *Handlers) HandlePanic() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
panic("y tho")
}
}