From 18224a5f05b7f3fc7f5e5bf216db59fc2dfa66bd Mon Sep 17 00:00:00 2001 From: Bagas Aulia Rezki Date: Thu, 13 Jun 2024 15:34:57 +0700 Subject: [PATCH] Remove unuse route --- routes/routes.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index a5a3e98..51c46df 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -193,11 +193,6 @@ func SetupRoutes() *http.ServeMux { http.ServeFile(w, r, "public/favicon.ico") }) - //TODO add error message catching to the middleware so we can show the error message at the error page - handler.HandleFunc("/test", func(w http.ResponseWriter, r *http.Request) { - http.Error(w, "anjay", http.StatusInternalServerError) - }) - fileServer := http.FileServer(http.Dir("./public")) handler.Handle("/public/", http.StripPrefix("/public", fileServer))