diff options
| author | Jan Wolff <janw@mailbox.org> | 2025-09-12 09:34:01 +0200 |
|---|---|---|
| committer | Jan Wolff <janw@mailbox.org> | 2025-09-12 09:34:01 +0200 |
| commit | 283c31564a9d5dab4b8b71d7498886b0cd20a999 (patch) | |
| tree | bc15867a389f25b1855042b5af20efba96c68dbb /controller/index.go | |
initial commit
Diffstat (limited to 'controller/index.go')
| -rw-r--r-- | controller/index.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/controller/index.go b/controller/index.go new file mode 100644 index 0000000..6f927ed --- /dev/null +++ b/controller/index.go @@ -0,0 +1,13 @@ +package controller + +import ( + "net/http" +) + +func (app App) Index(res http.ResponseWriter, req *http.Request) { + if !app.requireAuth(res, req) { + return + } + + app.tmpl.ExecuteTemplate(res, "index", nil) +} |
