Skip to content

Commit

Permalink
remove go122 handlefunc definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kubegu committed Apr 4, 2024
1 parent 382f52e commit 6a9a60f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6a9a60f

Please sign in to comment.