Mercurial > public > pacobot
comparison app/handlers.go @ 12:aaf85ae1f942
add very simple html template
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 20 Mar 2025 11:12:21 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:6d91c612310a | 12:aaf85ae1f942 |
---|---|
1 package app | |
2 | |
3 import ( | |
4 "net/http" | |
5 | |
6 "github.com/denniscmcom/pacobot/store" | |
7 "github.com/gin-gonic/gin" | |
8 ) | |
9 | |
10 func Index(c *gin.Context) { | |
11 c.HTML(http.StatusOK, "index.html", gin.H{ | |
12 "title": "Pacobot", | |
13 "isLogged": store.IsAccessTokenSet(), | |
14 }) | |
15 } |