From f4e227957b6e89f99d73a4b22a84af9cdc511db3 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 7 Dec 2016 17:19:11 +0100 Subject: [PATCH] Add index --- main.go | 1 + templates/index.html | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 templates/index.html diff --git a/main.go b/main.go index e371235..3f7d80c 100644 --- a/main.go +++ b/main.go @@ -12,6 +12,7 @@ func main() { router.LoadHTMLGlob("./templates/*") router.Static("/static", "./static") + router.GET("/", func(c *gin.Context) { c.HTML(http.StatusOK, "index", nil) }) router.GET("/login", login) api := router.Group("/api/v1") { diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..9b11d49 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,21 @@ +{{define "index"}} + + + + Budgeteer + + {{template "head"}} + + + +
+ Willkommen bei Budgeteer, der neuen App für's Budget! +
+
+ Login +
+ + +{{end}} \ No newline at end of file