nidus-sync/rmo/search.go
Eli Ribble e7681c7d6e
Change public-report to rmo
We're leaning into the branding and shorter directory names
2026-01-29 23:59:35 +00:00

28 lines
469 B
Go

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