aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/auth/login.go
diff options
context:
space:
mode:
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
+}