1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-06 11:38:19 +00:00

Migrate some more handlers to gorilla/mux

This commit is contained in:
handlerug 2021-07-17 21:15:39 +07:00
parent ae03dbcd64
commit eb22cf206c

View File

@ -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) {