initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type aboutView struct {
|
||||
Version string
|
||||
ResetIntervalMinutes int
|
||||
}
|
||||
|
||||
func (s *Server) handleAbout(w http.ResponseWriter, r *http.Request) {
|
||||
s.render(w, "about_page", aboutView{
|
||||
Version: Version,
|
||||
ResetIntervalMinutes: int(resetInterval / time.Minute),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user