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

18
database/mainpage.go Normal file
View File

@@ -0,0 +1,18 @@
package database
import (
"github.com/gin-gonic/gin"
"time"
"trikotwaschliste/models"
)
func DbMainpage() gin.H {
var items []models.Washlist
items = append(items, models.Washlist{
Person: "Gerda",
Date: time.Now(),
IsWashed: true,
})
return gin.H{"items": items}
}