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:
parent
ae03dbcd64
commit
eb22cf206c
@ -13,8 +13,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func initSearch(r *mux.Router) {
|
func initSearch(r *mux.Router) {
|
||||||
r.PathPrefix("/title-search/").HandlerFunc(handlerTitleSearch)
|
r.HandleFunc("/title-search/", handlerTitleSearch)
|
||||||
r.PathPrefix("/title-search-json/").HandlerFunc(handlerTitleSearchJSON)
|
r.HandleFunc("/title-search-json/", handlerTitleSearchJSON)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handlerTitleSearch(w http.ResponseWriter, rq *http.Request) {
|
func handlerTitleSearch(w http.ResponseWriter, rq *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user