diff --git a/handler/mainpage.go b/handler/mainpage.go index e800f04..6fbd8ff 100644 --- a/handler/mainpage.go +++ b/handler/mainpage.go @@ -22,3 +22,9 @@ func UploadName(pool *pgxpool.Pool) gin.HandlerFunc { c.Redirect(302, "/") } } + +func Credits() gin.HandlerFunc { + return func(c *gin.Context) { + c.HTML(http.StatusAccepted, "credits.html", gin.H{"version":"1.0"}) + } +} diff --git a/html/mainpage/credits.html b/html/mainpage/credits.html index 56e6a9c..65f6914 100644 --- a/html/mainpage/credits.html +++ b/html/mainpage/credits.html @@ -2,7 +2,7 @@ - Medien Sammlung - Credits + Trikotwaschliste - Credits @@ -10,10 +10,10 @@ {{template "navbar"}}

-

Medien Sammlung Version: {{ .version }}

+

Trikot Waschliste Version: {{ .version }}


Entwickler: structix

-

Git Repository: Gitea Link

+

Git Repository: Gitea Link

diff --git a/routes/routes.go b/routes/routes.go index 1e1fef4..9289d76 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -8,6 +8,7 @@ import ( func RoutesInit(router *gin.Engine, pool *pgxpool.Pool) { router.GET("/", handler.MainPage(pool)) + router.GET("/credits", handler.Credits()) router.POST("/uploadname", handler.UploadName(pool)) router.GET("/persons", handler.ShowPersonsList(pool))