aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/auth/login.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-28 13:56:00 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-28 13:56:00 +0100
commitb9b6688c8751b3ff0fe89655683af48eff195501 (patch)
tree92b13cb955713a3cb7c213e0a9fd1159a488ecb7 /pkg/handler/auth/login.go
parent6a3a7a85ef2f63e88a8c96aa3ab525ce843024f9 (diff)
downloadcerrado-b9b6688c8751b3ff0fe89655683af48eff195501.tar.gz
cerrado-b9b6688c8751b3ff0fe89655683af48eff195501.tar.bz2
cerrado-b9b6688c8751b3ff0fe89655683af48eff195501.zip
feat: Add skeleton login page
Diffstat (limited to 'pkg/handler/auth/login.go')
-rw-r--r--pkg/handler/auth/login.go20
1 files changed, 20 insertions, 0 deletions
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
+}