mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
16 lines
340 B
Go
16 lines
340 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func renderAbout(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Cache-Control", "max-age=3600")
|
|
err := aboutTemplate(AboutParams{
|
|
HeadParams: HeadParams{IsAbout: true, IsProfile: false},
|
|
}).Render(r.Context(), w)
|
|
if err != nil {
|
|
log.Error().Err(err).Msg("error rendering tmpl")
|
|
}
|
|
}
|