aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/auth/login.go
blob: 7e77a67ba295d77bb0b742eb3ccefea98d9fd411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package auth

import (
	"net/http"

	"git.gabrielgio.me/cerrado/pkg/ext"
	"git.gabrielgio.me/cerrado/templates"
)

type (
	LoginHandler struct{}
)

func (g *LoginHandler) Login(w http.ResponseWriter, r *http.Request) error {
	ext.SetHTML(w)

	login := &templates.LoginPage{}
	templates.WritePageTemplate(w, login)
	return nil
}