mirror of
https://github.com/Luzifer/ots.git
synced 2025-07-22 06:08:51 -04:00
parent
62ca7b3900
commit
901c85ca11
10 changed files with 233 additions and 61 deletions
2
main.go
2
main.go
|
@ -182,10 +182,12 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
|||
if err := indexTpl.Execute(w, struct {
|
||||
Customize customize
|
||||
InlineContentNonce string
|
||||
MaxSecretExpiry int64
|
||||
Version string
|
||||
}{
|
||||
Customize: cust,
|
||||
InlineContentNonce: inlineContentNonceStr,
|
||||
MaxSecretExpiry: cfg.SecretExpiry,
|
||||
Version: version,
|
||||
}); err != nil {
|
||||
http.Error(w, errors.Wrap(err, "executing template").Error(), http.StatusInternalServerError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue