nidus-sync/rmo/search.go

25 lines
421 B
Go
Raw Normal View History

package rmo
2026-01-09 21:31:45 +00:00
import (
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/html"
2026-01-09 21:31:45 +00:00
)
2026-01-21 15:15:24 +00:00
type ContentSearch struct {
MapboxToken string
2026-01-21 15:15:24 +00:00
URLTegola string
}
2026-01-09 21:31:45 +00:00
func getSearch(w http.ResponseWriter, r *http.Request) {
html.RenderOrError(
2026-01-09 21:31:45 +00:00
w,
"rmo/search.html",
2026-01-21 15:15:24 +00:00
ContentSearch{
MapboxToken: config.MapboxToken,
URLTegola: config.MakeURLTegola("/"),
},
2026-01-09 21:31:45 +00:00
)
}