From b9b6688c8751b3ff0fe89655683af48eff195501 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 28 Oct 2024 13:56:00 +0100 Subject: feat: Add skeleton login page --- pkg/handler/auth/login.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/handler/auth/login.go (limited to 'pkg/handler/auth') diff --git a/pkg/handler/auth/login.go b/pkg/handler/auth/login.go new file mode 100644 index 0000000..7e77a67 --- /dev/null +++ b/pkg/handler/auth/login.go @@ -0,0 +1,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 +} -- cgit v1.2.3