mirror of
https://github.com/rjNemo/auth
synced 2026-06-06 08:26:39 +00:00
10 lines
248 B
Go
10 lines
248 B
Go
package server
|
|
|
|
import "net/http"
|
|
|
|
func (s *Server) indexHandler() http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
state := sessionFromContext(r.Context())
|
|
s.render(w, "index.html", newIndexData(state.Email, ""))
|
|
}
|
|
}
|