aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-08-29 22:47:24 -0400
committerSamuel Johnson <[email protected]>2025-08-29 22:47:24 -0400
commita431c6737f230be70c0fa44e5b30337b044db6fb (patch)
tree91fe243201220c099fa845293d9299722f09feee
parente00657e65a5a8a80f55c298aca8e3362be71d9d8 (diff)
Remove abandoned gorilla/muxHEADdev
-rw-r--r--cmd/web/handlers/routes.go6
-rw-r--r--go.mod1
-rw-r--r--go.sum2
3 files changed, 3 insertions, 6 deletions
diff --git a/cmd/web/handlers/routes.go b/cmd/web/handlers/routes.go
index 31fe401..91c27a2 100644
--- a/cmd/web/handlers/routes.go
+++ b/cmd/web/handlers/routes.go
@@ -1,11 +1,11 @@
package handlers
import (
- "github.com/gorilla/mux"
+ "net/http"
"paterissa.net/mblog/cmd/web/types"
)
-func RegisterEndpoints(app types.Application) *mux.Router {
+func RegisterEndpoints(app types.Application) *http.ServeMux {
blog := blogContext{
err: app.Err,
Name: app.Env.Webmaster,
@@ -20,7 +20,7 @@ func RegisterEndpoints(app types.Application) *mux.Router {
path: "static",
}
- blogRouter := mux.NewRouter()
+ blogRouter := http.NewServeMux()
blogRouter.HandleFunc("/", blog.index)
blogRouter.HandleFunc("/audio", audio.readdir)
diff --git a/go.mod b/go.mod
index 73a4b66..bf24c47 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,6 @@ module paterissa.net/mblog
go 1.23.5
require (
- github.com/gorilla/mux v1.8.1
github.com/joho/godotenv v1.5.1
github.com/yuin/goldmark v1.7.11
)
diff --git a/go.sum b/go.sum
index b71740d..6274e37 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,3 @@
-github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
-github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/yuin/goldmark v1.7.11 h1:ZCxLyDMtz0nT2HFfsYG8WZ47Trip2+JyLysKcMYE5bo=