Skip to content

Commit

Permalink
Migrate some more handlers to gorilla/mux
Browse files Browse the repository at this point in the history
  • Loading branch information
handlerug committed Jul 17, 2021
1 parent ae03dbc commit eb22cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
)

func initSearch(r *mux.Router) {
r.PathPrefix("/title-search/").HandlerFunc(handlerTitleSearch)
r.PathPrefix("/title-search-json/").HandlerFunc(handlerTitleSearchJSON)
r.HandleFunc("/title-search/", handlerTitleSearch)
r.HandleFunc("/title-search-json/", handlerTitleSearchJSON)
}

func handlerTitleSearch(w http.ResponseWriter, rq *http.Request) {
Expand Down

0 comments on commit eb22cf2

Please sign in to comment.