Add html, handler and db mock

This commit is contained in:
2020-10-08 12:43:59 +02:00
parent 41c14ff6bb
commit e2aa46c891
14 changed files with 672 additions and 1 deletions

13
handler/mainpage.go Normal file
View File

@@ -0,0 +1,13 @@
package handler
import (
"github.com/gin-gonic/gin"
"net/http"
"trikotwaschliste/database"
)
func MainPage() gin.HandlerFunc {
return func(c *gin.Context) {
c.HTML(http.StatusAccepted, "index.html", database.DbMainpage())
}
}