allowances/handlers.go

18 lines
379 B
Go

package main
import (
"log"
"net/http"
)
func homeHandler(c http.ResponseWriter, req *http.Request) {
log.Printf("%v\n", req.URL)
T("index.html").Execute(c, map[string]interface{}{})
}
func loginHandler(c http.ResponseWriter, req *http.Request) {
pwAttempt := req.FormValue("passwd")
log.Printf("%v\n", pwAttempt)
T("login.html").Execute(c, map[string]interface{}{})
}