From 7de9126ea10229f63d9084e565c53f457b3c53b6 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Thu, 6 Mar 2025 16:55:41 -0300 Subject: [PATCH] chore: remove /test endpoint --- router/router.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/router/router.go b/router/router.go index 3511410..c5e52f7 100644 --- a/router/router.go +++ b/router/router.go @@ -1,7 +1,6 @@ package router import ( - "errors" "log/slog" "net/http" @@ -36,11 +35,6 @@ func New(assertions tinyssert.Assertions, log *slog.Logger, dev bool) http.Handl } }) r.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static")))) - r.HandleFunc("/test", func(w http.ResponseWriter, r *http.Request) { - exception.InternalServerError(errors.New("TEST ERROR"), - exception.WithData("test-data", "test-value"), - ).ServeHTTP(w, r) - }) r.HandleFunc("/panic", func(w http.ResponseWriter, r *http.Request) { panic("TEST PANIC") })