1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-10-30 15:13:02 +00:00

Rename primitive search to title search

Makes more sense, actually
This commit is contained in:
Timur Ismagilov
2021-07-12 22:05:50 +05:00
parent ba0b12a803
commit 6a26c08d02
4 changed files with 24 additions and 24 deletions

View File

@@ -11,10 +11,10 @@ import (
)
func initSearch() {
http.HandleFunc("/primitive-search/", handlerPrimitiveSearch)
http.HandleFunc("/title-search/", handlerTitleSearch)
}
func handlerPrimitiveSearch(w http.ResponseWriter, rq *http.Request) {
func handlerTitleSearch(w http.ResponseWriter, rq *http.Request) {
util.PrepareRq(rq)
_ = rq.ParseForm()
var (
@@ -25,7 +25,7 @@ func handlerPrimitiveSearch(w http.ResponseWriter, rq *http.Request) {
w,
views.BaseHTML(
"Search: "+query,
views.PrimitiveSearchHTML(query, shroom.YieldHyphaNamesContainingString),
views.TitleSearchHTML(query, shroom.YieldHyphaNamesContainingString),
u,
),
)