I added some DB schema to track logos and to relate reports to organizations. I reworked how GPS data comes from EXIF data on images because it wasn't working for JPEGs. I might have broken PNGs in the process. Also made the config options for domain names more standardized.
28 lines
478 B
Go
28 lines
478 B
Go
package publicreport
|
|
|
|
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("/"),
|
|
},
|
|
)
|
|
}
|