Replace Gorilla Mux with net/http router

This commit is contained in:
2024-10-26 01:06:24 +02:00
parent f6d8bce2d5
commit 3742acf149
4 changed files with 8 additions and 16 deletions

View File

@ -7,8 +7,6 @@ import (
"os"
"reflect"
"testing"
"github.com/gorilla/mux"
)
//go:embed testdata/1a79a4d60de6718e8e5b326e338ae533_v1.png
@ -26,8 +24,8 @@ var gh2 []byte
//go:embed testdata/1a79a4d60de6718e8e5b326e338ae533_s40.png
var s40 []byte
func testRouter() *mux.Router {
router := mux.NewRouter()
func testRouter() *http.ServeMux {
router := http.NewServeMux()
router.HandleFunc("/avatar/{id}", requestHandler)
return router
}