nidus-sync/public-report/search.go
Eli Ribble acaeb2129e
Begin sharing code with search page
This includes code for geocoding, building a map, and getting the user's
location.
2026-01-09 23:32:39 +00:00

26 lines
415 B
Go

package publicreport
import (
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/htmlpage"
)
type ContextSearch struct {
MapboxToken string
}
var (
Search = buildTemplate("search", "base")
)
func getSearch(w http.ResponseWriter, r *http.Request) {
htmlpage.RenderOrError(
w,
Search,
ContextSearch{
MapboxToken: config.MapboxToken,
},
)
}