From 6a9a60fd958822cfc1deea666faa9413f2167f54 Mon Sep 17 00:00:00 2001 From: kubegu Date: Thu, 4 Apr 2024 20:52:57 +0200 Subject: [PATCH] remove go122 handlefunc definitions --- web/server.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/server.go b/web/server.go index 29c5270..c6b109a 100644 --- a/web/server.go +++ b/web/server.go @@ -19,11 +19,10 @@ var htmlTemplates embed.FS func InitMux() *http.ServeMux { mux := http.NewServeMux() - mux.HandleFunc("GET /", movieHandler) - mux.HandleFunc("GET /games/", gamesIndexHandler) - mux.HandleFunc("GET /movies/", movieHandler) - mux.HandleFunc("POST /games-search/", gameSearchHandler) - mux.HandleFunc("POST /movies-search/", movieSearchHandler) + mux.HandleFunc("/games/", gamesIndexHandler) + mux.HandleFunc("/movies/", movieHandler) + mux.HandleFunc("/games-search/", gameSearchHandler) + mux.HandleFunc("/movies-search/", movieSearchHandler) return mux }