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