nidus-sync/sync/privacy.go
Eli Ribble be86a5d950
Actually add the privacy page, make values variables
So I can do different things at some point in dev/prod
2026-01-22 18:43:36 +00:00

32 lines
565 B
Go

package sync
import (
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/htmlpage"
)
type ContentPrivacy struct {
Address string
Company string
Site string
URLSync string
}
var (
PrivacyT = buildTemplate("privacy", "base")
)
func getPrivacy(w http.ResponseWriter, r *http.Request) {
htmlpage.RenderOrError(
w,
PrivacyT,
ContentPrivacy{
Address: "2726 S Quinn Ave, Gilbert, AZ, USA",
Company: "Gleipnir LLC",
Site: "Nidus Sync",
URLSync: config.MakeURLNidus("/"),
},
)
}