aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/handlers/routes.go
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 /cmd/web/handlers/routes.go
parente00657e65a5a8a80f55c298aca8e3362be71d9d8 (diff)
Remove abandoned gorilla/muxHEADdev
Diffstat (limited to 'cmd/web/handlers/routes.go')
-rw-r--r--cmd/web/handlers/routes.go6
1 files changed, 3 insertions, 3 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)