From 283c31564a9d5dab4b8b71d7498886b0cd20a999 Mon Sep 17 00:00:00 2001 From: Jan Wolff Date: Fri, 12 Sep 2025 09:34:01 +0200 Subject: initial commit --- controller/index.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 controller/index.go (limited to 'controller/index.go') 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) +} -- cgit v1.2.3